@xmanrui/dsh-im 4.18.0 → 4.18.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.
package/README.en.md CHANGED
@@ -240,15 +240,19 @@ node bin/dsh-im.mjs install --source .
240
240
 
241
241
  `npm run check` runs unit tests, builds the Host and Client artifacts, and verifies that the published package contains neither credentials nor standalone channel settings-page registrations.
242
242
 
243
- IM management RPCs accept loopback browsers by default. When a Web profile is deliberately served on a trusted LAN, opt the plugin into the Host authorities already trusted by Connection in that profile's `cordis.patch.yml`:
243
+ IM management uses Harness browser authentication and Host/Origin trust checks by default. Once Harness allows and authenticates access from your LAN address, you can view and configure IM bots without any extra dsh-im configuration.
244
+
245
+ To additionally restrict IM management to local access, set the following in the active Web profile's `cordis.patch.yml`:
244
246
 
245
247
  ```yaml
246
248
  - id: xmanrui-dsh-im
247
249
  config:
248
- rpcAuthority: trusted-host
250
+ rpcAuthority: loopback
249
251
  ```
250
252
 
251
- `trusted-host` allows trusted authorities to reach IM management after Harness browser authentication and Host/Origin checks. The default `loopback` policy additionally requires loopback Host and Origin values; update and inbound TTL management always remain loopback-only.
253
+ `rpcAuthority` defaults to `trusted-host`; explicitly selecting `loopback` additionally requires loopback Host and Origin values. Update and inbound TTL management always remain loopback-only.
254
+
255
+ After building the plugin, run `node scripts/verify-lan-management.mjs /path/to/built/deepseek-harness` for the LAN management HTTP integration check. It starts the original DSH CLI with an isolated temporary profile and no bot credentials, checks default access, authentication, Host/Origin checks, and explicit `loopback` restrictions, then stops the server and removes the temporary directory. Requests carry LAN Host/Origin values over loopback TCP; a browser on a second device requires separate verification. The original `0.1.5-alpha.1` CLI rejects `--host 0.0.0.0`, so that browser check needs a Harness environment that supports LAN access.
252
256
 
253
257
  ### Bot chat message language
254
258
 
package/README.md CHANGED
@@ -243,15 +243,19 @@ node bin/dsh-im.mjs install --source .
243
243
 
244
244
  `npm run check` 运行单元测试、构建 Host/Client 产物,并验证发布包不包含凭据或独立渠道设置页注册。
245
245
 
246
- IM 管理 RPC 默认仅接受回环浏览器。如果 Web profile 在受信任的局域网内对外提供服务,可在该 profile `cordis.patch.yml` 中显式开放给 Connection 已信任的 Host authority:
246
+ IM 管理接口默认沿用 Harness 的浏览器认证和 Host/Origin 信任检查。只要 Harness 已允许并认证当前局域网访问,便可直接查看和配置 IM 机器人,无需额外修改 dsh-im 配置。
247
+
248
+ 如需将 IM 管理额外限制为仅本机访问,可在当前 Web profile 的 `cordis.patch.yml` 中设置:
247
249
 
248
250
  ```yaml
249
251
  - id: xmanrui-dsh-im
250
252
  config:
251
- rpcAuthority: trusted-host
253
+ rpcAuthority: loopback
252
254
  ```
253
255
 
254
- `trusted-host` 允许已通过 Harness 浏览器认证和 Host/Origin 检查的受信任地址访问 IM 管理接口。默认 `loopback` 还要求回环 Host 和 Origin;更新与入站 TTL 管理始终仅允许回环访问。
256
+ `rpcAuthority` 默认为 `trusted-host`;显式设置 `loopback` 会额外要求回环 Host 和 Origin。更新与入站 TTL 管理始终仅允许回环访问。
257
+
258
+ 局域网管理的 HTTP 集成测试可在构建插件后运行 `node scripts/verify-lan-management.mjs /path/to/built/deepseek-harness`。脚本启动原版 DSH CLI,使用独立临时 profile 和空机器人配置,检查默认访问、登录认证、Host/Origin 检查以及显式 `loopback` 策略,结束后停止服务并清理临时目录。测试通过回环 TCP 发送局域网 Host/Origin,不替代跨设备浏览器验收;原版 `0.1.5-alpha.1` CLI 本身拒绝 `--host 0.0.0.0`,跨设备测试需使用支持局域网访问的 Harness 环境。
255
259
 
256
260
  ### 聊天消息语言
257
261
 
package/lib/client.js CHANGED
@@ -582,7 +582,7 @@ var React29 = __toESM(require("react"), 1);
582
582
  // package.json
583
583
  var package_default = {
584
584
  name: "@xmanrui/dsh-im",
585
- version: "4.18.0",
585
+ version: "4.18.1",
586
586
  description: "\u628A\u5341\u4E00\u79CD IM \u6E20\u9053\u548C\u516C\u7F51 AI Office \u63A5\u5165\u672C\u673A DeepSeek Harness\u3002 Connect eleven IM channels and a public AI Office to a local DeepSeek Harness.",
587
587
  keywords: [
588
588
  "deepseek-harness",
@@ -630,6 +630,10 @@ var package_default = {
630
630
  {
631
631
  name: "cherryFloris",
632
632
  url: "https://github.com/cherryFloris"
633
+ },
634
+ {
635
+ name: "geekyfoxlab",
636
+ url: "https://github.com/geekyfoxlab"
633
637
  }
634
638
  ],
635
639
  license: "MIT",