dsh-remote-web 0.6.6-beta.2 → 0.6.6-beta.4

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/lib/index.js +10 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1812,7 +1812,7 @@ const PLUGIN_ID = "dsh-remote-web";
1812
1812
  const PLUGIN_LEGACY_IDS = ["dsh-remote-ui"];
1813
1813
  const PLUGIN_ALL_IDS = [PLUGIN_ID, ...PLUGIN_LEGACY_IDS];
1814
1814
  /** 插件自身发布版本(与 dsh-remote 根包同步递增)。 */
1815
- const PLUGIN_VERSION = "0.6.6-beta.2";
1815
+ const PLUGIN_VERSION = "0.6.6-beta.4";
1816
1816
  const UPDATE_LOG = ".dsh-update.log";
1817
1817
  const UPDATE_MARKER = ".dsh-update-running";
1818
1818
 
@@ -2436,10 +2436,17 @@ const TELEMETRY_EVENT_NAMES = new Set([
2436
2436
  "tunnel_disconnected", "first_remote_ok", "plugin_loaded", "panel_opened", "harness_restart",
2437
2437
  "update_started", "update_failed",
2438
2438
  ]);
2439
- /** fail_code 白名单(白名单外的分类一律落 unknown)。 */
2439
+ /**
2440
+ * fail_code 白名单 —— **必须与服务端 TELEMETRY_FAIL_CODES 完全一致**。
2441
+ * 两个用途:① 构造事件时校验(白名单外会被清成空串,等于归因白做);
2442
+ * ② 受信边界:只有枚举值能出网络,原始错误文本永不上报。
2443
+ * 2026-09-15 教训:新增归因码时忘了同步这里,1659 次 Windows 失败仍然只会显示 unknown。
2444
+ */
2440
2445
  const TELEMETRY_FAIL_CODES = new Set([
2441
2446
  "node_missing", "node_too_old", "npm_unreachable", "npm_eacces", "platform_unsupported",
2442
- "runtime_install_timeout", "launchd_failed", "bridge_exit", "bind_conflict", "bind_device_limit", "unknown",
2447
+ "runtime_install_timeout", "launchd_failed", "bridge_exit", "bind_conflict", "bind_device_limit",
2448
+ "npx_cmd_unavailable", "registry_timeout", "install_script_missing", "npx_exit_nonzero", "npx_output_encoding",
2449
+ "unknown",
2443
2450
  ]);
2444
2451
  /** node 半只发 source=plugin。 */
2445
2452
  const TELEMETRY_SOURCE = "plugin";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-remote-web",
3
- "version": "0.6.6-beta.2",
3
+ "version": "0.6.6-beta.4",
4
4
  "description": "公网远程控制 DeepSeek Harness(dsh web):安装即得专属加密地址,人在外面也能用手机访问电脑上的 dsh——无需同一局域网/WiFi、无需公网 IP 与内网穿透,全程加密;手机端 100% 还原电脑体验(对话/工具/审批/设置)。技术用户可选自建服务,流量走自己的服务器。Remote control DeepSeek Harness (dsh web) from anywhere over the public internet — install, get an encrypted URL, use it from your phone on any network (dual-half cordis plugin: Settings panel + same-origin /dsh-remote routes). (2026-09 由 dsh-remote-ui 更名 / renamed from dsh-remote-ui; dsh-remote 的 dsh web 插件半,不是纯 UI/皮肤插件)",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",