@mrrisega/dsh-remote 0.6.14 → 0.6.15
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/clients/dsh-remote/dsh-bridge.mjs +64 -13
- package/clients/dsh-remote/dsh-events.mjs +22 -2
- package/clients/dsh-remote/e2ee-client.mjs +97 -13
- package/clients/dsh-remote/e2ee-shim-script.js +31 -3
- package/clients/dsh-remote/mobile-adapter.mjs +172 -0
- package/clients/dsh-remote/test/dsh-events.test.mjs +89 -0
- package/clients/dsh-remote/test/e2ee-bridge.test.mjs +73 -3
- package/clients/dsh-remote/test/e2ee-client.test.mjs +42 -1
- package/clients/dsh-remote/test/e2ee-shim.test.mjs +10 -1
- package/clients/dsh-remote/test/mobile-adapter-guards.test.mjs +18 -1
- package/clients/dsh-remote/test/mobile-adapter-image.test.mjs +325 -0
- package/clients/dsh-remote/test/mobile-adapter-runtime.test.mjs +3 -1
- package/clients/dsh-remote/test/wechat-runtime.test.mjs +268 -1
- package/clients/dsh-remote/upstream-discovery.mjs +186 -30
- package/clients/dsh-remote/wechat-channel.mjs +86 -3
- package/clients/dsh-remote/wechat-runtime.mjs +253 -10
- package/dsh-setup.mjs +161 -7
- package/package.json +1 -1
- package/packages/dsh-remote-web/lib/client.js +31 -1
- package/packages/dsh-remote-web/lib/index.js +392 -49
- package/packages/dsh-remote-web/package.json +1 -1
- package/packages/dsh-remote-web/runtime/clients/dsh-remote/dsh-bridge.mjs +64 -13
- package/packages/dsh-remote-web/runtime/clients/dsh-remote/dsh-events.mjs +22 -2
- package/packages/dsh-remote-web/runtime/clients/dsh-remote/e2ee-client.mjs +97 -13
- package/packages/dsh-remote-web/runtime/clients/dsh-remote/e2ee-shim-script.js +31 -3
- package/packages/dsh-remote-web/runtime/clients/dsh-remote/mobile-adapter.mjs +172 -0
- package/packages/dsh-remote-web/runtime/clients/dsh-remote/upstream-discovery.mjs +186 -30
- package/packages/dsh-remote-web/runtime/clients/dsh-remote/wechat-channel.mjs +86 -3
- package/packages/dsh-remote-web/runtime/clients/dsh-remote/wechat-runtime.mjs +253 -10
- package/packages/dsh-remote-web/runtime/dsh-setup.mjs +161 -7
- package/packages/dsh-remote-web/test/doctor-cli.test.mjs +117 -0
- package/packages/dsh-remote-web/test/linux-bridge.test.mjs +346 -0
- package/packages/dsh-remote-web/test/picker-pin.test.mjs +80 -27
- package/packages/dsh-remote-web/test/self-manage.test.mjs +12 -0
|
@@ -233,3 +233,15 @@ test("源码约束:浏览器半提供版本与更新卡片(含彻底卸载
|
|
|
233
233
|
assert.match(source, /dsh-remote\/self\/uninstall/);
|
|
234
234
|
assert.match(source, /再点一次确认彻底卸载/);
|
|
235
235
|
});
|
|
236
|
+
|
|
237
|
+
test("★ 用户反馈锁:已是最新版时,修复入口必须**看得出是修复入口**(不能只叫「重新检查」)", () => {
|
|
238
|
+
// 用户原话(fb_4cc2c9df749c):「我的端口不是 3080,**没找到一键更新的按钮**」。
|
|
239
|
+
// 原因:npm 上已是最新版时,主按钮文案是「重新检查 / 修复」—— 他按字面找"一键更新",
|
|
240
|
+
// 找不到就以为面板没有修复入口。现在文案直接自称修复,并把"该点什么"写在旁边。
|
|
241
|
+
const source = readFileSync(new URL("../lib/client.js", import.meta.url), "utf8");
|
|
242
|
+
assert.match(source, /一键修复 \/ 重装运行环境/, "主按钮必须直接自称修复入口");
|
|
243
|
+
// ⚠️ 只查**字符串字面量**:这条规则写在注释里(说明历史文案)是允许的,出现在按钮上不行。
|
|
244
|
+
assert.ok(!/"重新检查 \/ 修复"/.test(source), "旧的模糊按钮文案不得再出现(用户已经因此找不到入口)");
|
|
245
|
+
assert.match(source, /已是最新版本 v/, "要如实告诉用户「已是最新」,并说明该怎么做");
|
|
246
|
+
assert.match(source, /会重新补装并拉起后台服务/, "要说清这一步到底做什么");
|
|
247
|
+
});
|