dsh-mobile-access 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +15 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -30,20 +30,30 @@ dsh web authentication required; reopen the URL printed by dsh web.
30
30
 
31
31
  ## 安装
32
32
 
33
- 本目录就是可安装的 bundle 目录。构建并验证后,由 DSH 插件管理器安装:
33
+ 推荐使用官方 DSH CLI 一次安装。已发布到 npm:
34
+
35
+ ```bash
36
+ dsh plugin --profile web add dsh-mobile-access@latest
37
+ ```
38
+
39
+ `dsh plugin` 会在 profile 目录执行 pnpm 安装,并自动把声明了 `dsh.bundle.patch` 的包追加到 `dsh.profile.bundles`;不需要手工编辑 `cordis.patch.yml` 或 bundle 列表。
40
+
41
+ 从本目录安装(开发机、未发布版本或离线环境):
34
42
 
35
43
  ```bash
36
44
  cd /Users/open/Documents/Stocks/plugins/dsh-mobile-access
37
45
  npm run verify
46
+ dsh plugin --profile web add /Users/open/Documents/Stocks/plugins/dsh-mobile-access
38
47
  ```
39
48
 
40
- 安装目录(绝对路径):
49
+ 也可以使用 `npm pack` 生成 tgz 后安装:
41
50
 
42
- ```text
43
- /Users/open/Documents/Stocks/plugins/dsh-mobile-access
51
+ ```bash
52
+ npm pack
53
+ dsh plugin --profile web add /absolute/path/to/dsh-mobile-access-1.0.1.tgz
44
54
  ```
45
55
 
46
- 在 DSH 的插件管理入口执行 `install_bundle`,目标为上面的绝对路径。新 bundle 通常可以 HMR 生效;如果插件管理器提示 `restart-required`,**不要自行重启**,按项目约定通知用户手工重启 DSH,用户确认「已重启」后再继续。
56
+ 如果 DSH 正在运行,安装后的 host bundle 可能需要重启才能加载;插件管理器提示 `restart-required` 时,**不要自行重启**,按项目约定通知用户手工重启 DSH,用户确认「已重启」后再继续。已有环境也可以继续使用 DSH 插件管理入口的 `install_bundle`,目标为本目录的绝对路径;两种方式等价。
47
57
 
48
58
  ## 使用
49
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mobile-access",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Independent DSH bundle that pairs iPhones and iPads with the official DeepSeek Harness Web GUI over the local network.",
5
5
  "type": "module",
6
6
  "license": "MIT",