@feiyang666/dsh-mobile-remote 1.4.4 → 1.4.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
@@ -1,5 +1,10 @@
1
1
  # 更新日志 / Changelog
2
2
 
3
+ ## v1.4.5 (2026-08-22)
4
+
5
+ ### 修复 / Fixed
6
+ - **客户端插件加载失败**(`lib/client.js`):`window.__ModuleLoader__.load` 的 `id` 写成了无 scope 的裸包名 `dsh-mobile-remote`,而 client-modules 按 loader entry 的完整包名 `@feiyang666/dsh-mobile-remote` 校验注册,导致报 `loaded without registering "@feiyang666/dsh-mobile-remote"`、客户端插件无法加载。本版改为完整包名,与 `dsh-vault`、`dsh-usage-plugin` 的 client bundle 写法一致。
7
+
3
8
  ## v1.4.4 (2026-08-22)
4
9
 
5
10
  ### 修复 / Fixed
package/RELEASE_NOTES.md CHANGED
@@ -1,6 +1,6 @@
1
- # dsh-mobile-remote v1.4.4
1
+ # dsh-mobile-remote v1.4.5
2
2
 
3
- **DeepSeek Harness 移动端远程控制插件** —— 在 Web UI 设置页内置「远程控制」:连接二维码、一键开关、在线设备数,让手机通过局域网访问并操控电脑上的 DeepSeek Harness。本版**修复安装插件后 dsh 服务启动崩溃**的问题。
3
+ **DeepSeek Harness 移动端远程控制插件** —— 在 Web UI 设置页内置「远程控制」:连接二维码、一键开关、在线设备数,让手机通过局域网访问并操控电脑上的 DeepSeek Harness。本版**修复客户端插件加载失败**(`client-modules: loaded without registering`)的问题。
4
4
 
5
5
  ## 安装方式
6
6
 
@@ -10,21 +10,26 @@ dsh plugin --profile web add @feiyang666/dsh-mobile-remote
10
10
 
11
11
  安装完成后**重启 dsh web 服务**,打开 `http://127.0.0.1:3080` → **设置 → 远程控制** 即可使用。
12
12
 
13
- ## 本版更新(v1.4.4)
13
+ ## 本版更新(v1.4.5)
14
14
 
15
- ### 🐛 修复安装插件后 dsh 服务启动崩溃(必须升级)
15
+ ### 🐛 修复客户端插件加载失败(client-modules: loaded without registering)
16
16
 
17
- 安装本插件后 dsh web 服务启动即崩溃(退出码 1),日志报:
17
+ 安装本插件后 WebUI 报错:
18
18
 
19
19
  ```
20
- Cannot find package 'dsh-mobile-remote' imported from C:\Users\Administrator\.dsh\profiles\web\
20
+ Failed to load plugins
21
+ failed to import loader entry 374151e3 (@feiyang666/dsh-mobile-remote):
22
+ client-modules: bundle /plugins/@feiyang666/dsh-mobile-remote/client.js?rev=...
23
+ loaded without registering "@feiyang666/dsh-mobile-remote" via __ModuleLoader__.load
21
24
  ```
22
25
 
23
- **根因**:bundle 补丁层 `cordis.patch.yml` 中插件行的 `name` 写成了无 scope 的裸包名 `dsh-mobile-remote`,而实际 npm 包名是 `@feiyang666/dsh-mobile-remote`。Cordis loader 按 `name` 去 profile 的 `node_modules` 中 import 该包时找不到,导致整个插件树加载失败、dsh 进程退出。
26
+ **根因**:client 侧 bundle(`lib/client.js`)中 `window.__ModuleLoader__.load` 的 `id` 写成了无 scope 的裸包名 `dsh-mobile-remote`,而 client-modules 按完整包名 `@feiyang666/dsh-mobile-remote` 校验注册结果,导致校验失败、客户端插件无法加载。
24
27
 
25
- **本版修复**:`cordis.patch.yml` 的 `name` 改为完整包名 `@feiyang666/dsh-mobile-remote`,与其它官方插件保持一致。
28
+ **本版修复**:`__ModuleLoader__.load` 的 `id` 改为完整包名 `@feiyang666/dsh-mobile-remote`,与 `dsh-vault`、`dsh-usage-plugin` 等官方插件的 client bundle 写法一致。
26
29
 
27
- > 已安装 v1.4.3 及更早版本的用户:请先在桌面端「插件管理」中卸载本插件(或执行 `dsh plugin --profile web remove @feiyang666/dsh-mobile-remote`),服务即可恢复启动,再安装本修复版。
30
+ > 本版同时包含 v1.4.4 的修复:`cordis.patch.yml` 的 `name` 改为完整包名(修复 dsh 服务启动崩溃 `Cannot find package 'dsh-mobile-remote'`)。
31
+
32
+ > 已安装旧版本的用户:请先卸载本插件(桌面端「插件管理」或 `dsh plugin --profile web remove @feiyang666/dsh-mobile-remote`),再重新安装本修复版。
28
33
 
29
34
  ## 已知事项
30
35
 
package/lib/client.js CHANGED
@@ -8,9 +8,13 @@
8
8
  //
9
9
  // 打包格式:浏览器 module loader(window.__ModuleLoader__.load)标准 bundle,
10
10
  // 与官方 client 插件一致。纯 React.createElement,无 JSX 构建依赖。
11
+ //
12
+ // 注意:__ModuleLoader__.load 的 id 必须是完整的 npm 包名(含 scope)。client-modules
13
+ // 按 loader entry 的包名(@feiyang666/dsh-mobile-remote)校验注册,若写成裸包名会报
14
+ // "loaded without registering ..." 导致客户端插件加载失败。
11
15
 
12
16
  window.__ModuleLoader__.load({
13
- id: 'dsh-mobile-remote',
17
+ id: '@feiyang666/dsh-mobile-remote',
14
18
  factory: (require) => {
15
19
  var module = { exports: {} };
16
20
  var exports = module.exports;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feiyang666/dsh-mobile-remote",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "DeepSeek Harness mobile remote-control plugin: LAN/external remote control (QR / on-off toggle / remote-access password gate), rich telemetry (expandable device details, system CPU/memory/load, DSH app state: version/sessions/workspaces/plugins/models), real external-tunnel status detection (frpc token / reconnect diagnostics), plus mobile-first UI polish and faster remote loading.",
5
5
  "keywords": [
6
6
  "deepseek",