@mrrisega/dsh-remote 0.6.0-beta.5 → 0.6.0-beta.6
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrrisega/dsh-remote",
|
|
3
|
-
"version": "0.6.0-beta.
|
|
3
|
+
"version": "0.6.0-beta.6",
|
|
4
4
|
"description": "手机远程控制 DeepSeek Harness · Remote control DeepSeek Harness (dsh web) from any phone browser — 100% 全功能 App 级体验:发消息、看工具执行、审批权限、改设置、管凭据,含特权操作,免内网穿透。一条命令安装 npx @mrrisega/dsh-remote。Mobile remote control for DSH, self-host or SaaS, no server needed on LAN.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
@@ -157,13 +157,15 @@ window.__ModuleLoader__.load({
|
|
|
157
157
|
// 不用 fixed 悬浮层(会遮挡官方按钮);改为在左侧主菜单的「设置」按钮上方克隆一行同款导航项:
|
|
158
158
|
// 点击 = 打开 设置页 → 「远程访问」栏目;首次点击前该入口右上角带小红点(localStorage 一次)。
|
|
159
159
|
var NAV_SEEN_KEY = "dsh-remote-nav-seen";
|
|
160
|
-
function clickTextNav(text) {
|
|
160
|
+
function clickTextNav(text, excludeId) {
|
|
161
161
|
try {
|
|
162
162
|
var nodes = document.querySelectorAll('button, [role="tab"], [role="menuitem"], [class*="navCell"], [class*="nav"], [class*="sidebar"] a, a');
|
|
163
163
|
for (var i = 0; i < nodes.length; i++) {
|
|
164
164
|
var el = nodes[i];
|
|
165
|
+
if (excludeId && el.id === excludeId) continue;
|
|
165
166
|
var t = (el.textContent || "").trim();
|
|
166
|
-
|
|
167
|
+
// 含匹配(标签常带 emoji 前缀,如“📱 远程访问”);排除自身入口防递归
|
|
168
|
+
if (t.indexOf(text) !== -1) {
|
|
167
169
|
try { el.click(); return true; } catch (e) { /* 尝试下一个 */ }
|
|
168
170
|
}
|
|
169
171
|
}
|
|
@@ -171,11 +173,11 @@ window.__ModuleLoader__.load({
|
|
|
171
173
|
return false;
|
|
172
174
|
}
|
|
173
175
|
function openRemoteSettings() {
|
|
174
|
-
if (clickTextNav("远程访问")) return; //
|
|
176
|
+
if (clickTextNav("远程访问", "dru-nav-remote")) return; // 已在栏目内/直接点到(排除自身)
|
|
175
177
|
if (clickTextNav("设置")) { /* 进入设置页后再轮询远程访问栏目 */ }
|
|
176
178
|
var tries = 0;
|
|
177
179
|
var iv = setInterval(function () {
|
|
178
|
-
if (clickTextNav("远程访问")) { clearInterval(iv); return; }
|
|
180
|
+
if (clickTextNav("远程访问", "dru-nav-remote")) { clearInterval(iv); return; }
|
|
179
181
|
if (++tries > 40) clearInterval(iv);
|
|
180
182
|
}, 150);
|
|
181
183
|
if (typeof iv.unref === "function") iv.unref();
|
|
@@ -946,7 +946,7 @@ const PLUGIN_ID = "dsh-remote-web";
|
|
|
946
946
|
const PLUGIN_LEGACY_IDS = ["dsh-remote-ui"];
|
|
947
947
|
const PLUGIN_ALL_IDS = [PLUGIN_ID, ...PLUGIN_LEGACY_IDS];
|
|
948
948
|
/** 插件自身发布版本(与 dsh-remote 根包同步递增)。 */
|
|
949
|
-
const PLUGIN_VERSION = "0.6.0-beta.
|
|
949
|
+
const PLUGIN_VERSION = "0.6.0-beta.6";
|
|
950
950
|
const UPDATE_LOG = ".dsh-update.log";
|
|
951
951
|
const UPDATE_MARKER = ".dsh-update-running";
|
|
952
952
|
|