dsh-mobile-plugin 0.5.151 → 0.5.153

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.
@@ -1,7 +1,10 @@
1
+ // 2026-12-01:FRP 地址兼容 frpc 回报的裸 IPv6 host:port(只规整 FRP,别家线路不动)。
1
2
  // 2026-11-23:服务商线路收成唯一一份清单,总控信封 / 手机心跳 / 配对二维码三处共用。
2
3
  // 以后加服务商只往这里加,二维码与手机都自动跟上,不再一处一处补。
3
4
  'use strict';
4
5
 
6
+ const { isIP } = require('node:net');
7
+
5
8
  /**
6
9
  * 服务商线路清单。
7
10
  *
@@ -18,6 +21,23 @@
18
21
  * `kind:'cf'`),并进这份清单会让手机把它当成第三方线路重复画一遍。二维码那边要带它,
19
22
  * 由调用方单独补一条即可。
20
23
  */
24
+ /**
25
+ * 只服务 FRP 的局部规整:frpc 在 IPv6 自建 frps 下会把地址回报成裸 `IPv6:port`,而 lineOf /
26
+ * tcpDirectTarget 只认 `[v6]:port`、IPv4 或 http(s),裸 IPv6 会被拒,FRP 线路就永远不出现在手机
27
+ * 网络页。这里只把「无 scheme、无方括号、host 经 isIP 判为 6、端口在最后一个冒号后」这一种转成
28
+ * `[host]:port`,让 FRP 保持 tcp 形态;http(s)、IPv4、已带方括号的地址原样交给 lineOf。
29
+ */
30
+ function normalizeFrpUrl(value) {
31
+ const raw = typeof value === 'string' ? value.trim().replace(/\/+$/, '') : '';
32
+ if (!raw || /^[a-z][a-z0-9+.-]*:\/\//i.test(raw) || raw.includes('[')) return raw;
33
+ const cut = raw.lastIndexOf(':');
34
+ if (cut <= 0) return raw;
35
+ const host = raw.slice(0, cut);
36
+ const port = raw.slice(cut + 1);
37
+ if (!/^\d+$/.test(port) || isIP(host) !== 6) return raw;
38
+ return `[${host}]:${port}`;
39
+ }
40
+
21
41
  function providerLinesOf(state) {
22
42
  const out = [];
23
43
  const seen = new Set();
@@ -39,7 +59,7 @@ function providerLinesOf(state) {
39
59
  const jdxb = lineOf(s.jdxbUrl);
40
60
  if (jdxb) push(jdxb.url, '节点小宝', jdxb.transport);
41
61
  // FRP 是本机 frpc 分到的公网地址,算一条独立线路。
42
- const frp = lineOf(s.frpUrl);
62
+ const frp = lineOf(normalizeFrpUrl(s.frpUrl));
43
63
  if (frp) push(frp.url, 'FRP', frp.transport);
44
64
  if (Array.isArray(s.customRoutes)) {
45
65
  for (const route of s.customRoutes) {
@@ -5,6 +5,7 @@
5
5
  // 错误码到文案的唯一一份定义放在本文件,HTTP 响应与列表行共用。
6
6
  // 2026-11-24:打开入口时按绑定给出固定本机端口,浏览器才有机会跨窗口命中网页资源缓存。
7
7
  // 2026-11-25:桌面壳熬过宽限后才崩时留一次性标记,面板经已有清单轮询补开浏览器;正常关窗不标记。
8
+ // 2026-12-01:新增 REMOTE_NO_ROUTE 文案,把「没有可用线路」和绑定信息失效分开。
8
9
  'use strict';
9
10
 
10
11
  const { createLocalGateway, LEASE_MS } = require('./local.cjs');
@@ -31,6 +32,7 @@ const REMOTE_ERROR_TEXT = {
31
32
  REMOTE_UNAVAILABLE: '对方电脑暂时不可用,请确认它已打开 DSH 后重试',
32
33
  REMOTE_NOT_FOUND: '找不到这台远程电脑,它可能已被删除,请刷新后重试',
33
34
  REMOTE_INVITATION: '绑定信息无效、已使用或已到期,请重新生成',
35
+ REMOTE_NO_ROUTE: '对方电脑当前没有可用线路,请先开启局域网直连或配好公网/隧道后重新生成绑定信息',
34
36
  'bad-invite': '绑定信息格式不正确,请核对后重新粘贴或重新生成',
35
37
  'bad-id': '设备标识不正确,请刷新面板后重试',
36
38
  'bad-mode': '线路挡位不正确,请重新选择',
@@ -1,6 +1,7 @@
1
1
  // 显式一次性邀请授权远程电脑,并把认证后的加密流接到本机固定网页入口。
2
2
  // 2026-11-29:配对回包的密文里附带总控订阅凭据,供本机零安装的启动器查线路;明文邀请不含此凭据。
3
3
  // 浏览器这条跨源客户端认不了头也认不了预检头,故两条入口同时认 instance 查询参数。
4
+ // 2026-12-01:没有可用线路时生成端不再出码,单独报 REMOTE_NO_ROUTE,避免接收端误判邀请已失效。
4
5
  'use strict';
5
6
 
6
7
  const net = require('node:net');
@@ -98,7 +99,11 @@ function createRemoteHost({ state, credentials, routesOf, getUpstreamPort, getWe
98
99
  // 不在这里临时开一下,邀请里就带不上内网地址。
99
100
  if (typeof onInvite === 'function') await onInvite(INVITE_TTL);
100
101
  for (const [id, value] of tickets) if (value.expiresAt <= now()) tickets.delete(id);
101
- const payload = { type: 'dsh-computer', version: 1, instanceId: instanceId(), name: name(), ticketId: c.random(16), ticket: c.random(), expiresAt: now() + INVITE_TTL, routes: await routes() };
102
+ // 没有可用线路就别出码:发出去的邀请对端只会报「没有可用线路」,还会让用户反复重新生成。
103
+ // 在登记票据之前挡住,让生成端先去开局域网直连或配好公网/隧道。
104
+ const inviteRoutes = await routes();
105
+ if (inviteRoutes.length < 1) throw c.error('REMOTE_NO_ROUTE', 'No usable route on this computer');
106
+ const payload = { type: 'dsh-computer', version: 1, instanceId: instanceId(), name: name(), ticketId: c.random(16), ticket: c.random(), expiresAt: now() + INVITE_TTL, routes: inviteRoutes };
102
107
  tickets.set(payload.ticketId, payload);
103
108
  return { invite: `dshcomputer://v1?data=${c.json(payload).toString('base64url')}`, expiresAt: payload.expiresAt };
104
109
  }
@@ -2,6 +2,7 @@
2
2
  // 握手超时按「有没有进展」判:升级阶段给一个上限,升级后每收到一条消息就重置沉默窗口,
3
3
  // 慢网只要还在往前推就一直等,只有彻底没声音的线路才会被判死。
4
4
  // 2026-11-29:配对回包里的总控订阅凭据(baseUrl/token/historyKey)原样带出,供本机零安装的启动器查线路。
5
+ // 2026-12-01:邀请线路为空单独报 REMOTE_NO_ROUTE,与非法邀请和版本不兼容分开。
5
6
  'use strict';
6
7
 
7
8
  const http = require('node:http');
@@ -36,10 +37,12 @@ function parseInvitation(text) {
36
37
  if (url.protocol !== 'dshcomputer:' || url.hostname !== 'v1' || (url.pathname && url.pathname !== '/')) throw new Error();
37
38
  value = JSON.parse(Buffer.from(url.searchParams.get('data') || '', 'base64url').toString('utf8'));
38
39
  }
39
- if (!value || value.type !== 'dsh-computer' || typeof value.instanceId !== 'string' || !value.instanceId || value.instanceId.length > 128 || typeof value.name !== 'string' || typeof value.ticketId !== 'string' || !/^[A-Za-z0-9_-]{22}$/.test(value.ticketId) || !Number.isFinite(value.expiresAt) || !Array.isArray(value.routes) || value.routes.length < 1 || value.routes.length > 32) throw new Error();
40
+ if (!value || value.type !== 'dsh-computer' || typeof value.instanceId !== 'string' || !value.instanceId || value.instanceId.length > 128 || typeof value.name !== 'string' || typeof value.ticketId !== 'string' || !/^[A-Za-z0-9_-]{22}$/.test(value.ticketId) || !Number.isFinite(value.expiresAt) || !Array.isArray(value.routes) || value.routes.length > 32) throw new Error();
40
41
  if (typeof value.version === 'number' && value.version !== 1) throw c.error('REMOTE_VERSION', 'Unsupported computer invitation version');
41
42
  if (value.version !== 1) throw new Error();
42
43
  c.keyBytes(value.ticket);
44
+ // 其余结构都合法、只是线路为空:这是对方没配出可用线路,不是邀请串无效,单独报码。
45
+ if (value.routes.length < 1) throw c.error('REMOTE_NO_ROUTE', 'No usable route on this computer');
43
46
  const routes = value.routes.map((route) => {
44
47
  c.endpoint(route, PAIR_PATH);
45
48
  if (typeof route.channel !== 'string' || !route.channel || route.channel.length > 32) throw new Error();
@@ -47,7 +50,7 @@ function parseInvitation(text) {
47
50
  });
48
51
  return { type: value.type, version: 1, instanceId: value.instanceId, name: value.name.slice(0, 128), ticketId: value.ticketId, ticket: value.ticket, expiresAt: value.expiresAt, routes };
49
52
  } catch (error) {
50
- if (error?.code === 'REMOTE_VERSION') throw error;
53
+ if (error?.code === 'REMOTE_VERSION' || error?.code === 'REMOTE_NO_ROUTE') throw error;
51
54
  throw c.error('REMOTE_INVITATION', 'Invalid computer invitation');
52
55
  }
53
56
  }
@@ -1,3 +1,4 @@
1
+ // 2026-12-01:自定义入口是 shebang 脚本时不再追加 --workdir,尊重脚本自带的 workdir(feedback 2179:6212)。
1
2
  // 2026-11-29:所有 CLI 调用显式带 --workdir,普通用户不再落到客户端默认的 /etc/zeronews。
2
3
  // 2026-11-28:补 downloadClientTo:换代时把新版下到 <bin>.next,旁边在跑的那份原样不动。
3
4
  // ZeroNews 客户端获取层:自带 → 系统 PATH → 缓存 → 官方地址下载,四平台固定路径。
@@ -57,8 +58,27 @@ function workDirOf(binary) {
57
58
  return path.dirname(String(binary || ''));
58
59
  }
59
60
 
60
- /** 给一条 CLI 参数追加上 --workdir,所有子命令统一走这里,别漏。 */
61
+ /**
62
+ * 自定义入口可能是包装脚本(DSHM_ZERONEWS_BIN 指过去的那份),脚本自己 exec 真客户端时已带
63
+ * --workdir;插件再追加一项,客户端按最后一项解析就会去错目录读不到 config.yml。
64
+ * 只读文件头两个字节判断 #!;读不到 / 读失败都当普通二进制,保持既有行为。
65
+ */
66
+ function isShebangScript(binary) {
67
+ let fd;
68
+ try {
69
+ fd = fs.openSync(binary, 'r');
70
+ const head = Buffer.alloc(2);
71
+ return fs.readSync(fd, head, 0, 2, 0) === 2 && head[0] === 0x23 && head[1] === 0x21;
72
+ } catch {
73
+ return false;
74
+ } finally {
75
+ if (fd !== undefined) { try { fs.closeSync(fd); } catch { /* 关不掉也不影响判断 */ } }
76
+ }
77
+ }
78
+
79
+ /** 给一条 CLI 参数追加上 --workdir,所有子命令统一走这里,别漏;脚本入口自带 workdir 时不追加。 */
61
80
  function withWorkDir(args, binary) {
81
+ if (isShebangScript(binary)) return [...args];
62
82
  return [...args, '--workdir', workDirOf(binary)];
63
83
  }
64
84
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mobile-plugin",
3
- "version": "0.5.151",
3
+ "version": "0.5.153",
4
4
  "description": "Mobile API (/api/mobile/v1) and relay client for the DSH mobile app — desktop profile build (dsh 0.2.x, peers resolved by the host)",
5
5
  "license": "MIT",
6
6
  "icon": "./icon.png",
@@ -117,23 +117,22 @@
117
117
  "yaml": "2.9.1"
118
118
  },
119
119
  "dshMobileReleaseNotes": {
120
- "version": "0.5.151",
120
+ "version": "0.5.153",
121
121
  "kinds": [
122
- "feature",
123
122
  "fix"
124
123
  ],
125
124
  "notes": {
126
- "zh-Hans": "- 过程清单改为按轮分页:历史消息只带最近 24 条步骤摘要,更早的步骤在点开清单、滚到上沿时再取,长对话进出更快、更省流量;推理全文、工具参数与输出、diff 仍一个字节不上消息线路。\n- 换代时挂起的提问现在按取消收尾,手机上的提问卡会正常收掉;推送遇到瞬时失败会退避重试三次,只有真送出去才记账,不再因一次抖动丢消息。\n- 回环端口被占时,自检会告诉你占用者的进程名和 PID;切换判据不变,不会误伤能正常连接的机器。\n- 端口冲突补全三处:只把抢占回环的进程算作占用者,主端口遇到权限错误会自动换号,ZeroNews 落点连续探不到才判失效、并有界重试在原隧道上改端口自愈。",
127
- "zh-Hant": "- 過程清單改為按輪分頁:歷史訊息只帶最近 24 條步驟摘要,更早的步驟在點開清單、滾到上沿時再取,長對話進出更快、更省流量;推理全文、工具參數與輸出、diff 仍一個位元組不上訊息線路。\n- 換代時掛起的提問現在按取消收尾,手機上的提問卡會正常收掉;推送遇到瞬時失敗會退避重試三次,只有真送出去才記帳,不再因一次抖動丟訊息。\n- 回環連接埠被佔時,自我檢查會告訴你佔用者的處理程序名稱和 PID;切換判據不變,不會誤傷能正常連接的機器。\n- 連接埠衝突補全三處:只把搶佔回環的處理程序算作佔用者,主連接埠遇到權限錯誤會自動換號,ZeroNews 落點連續探不到才判失效、並有界重試在原隧道上改連接埠自癒。",
128
- "en": "- Turn step summaries now load page by page: history messages carry only the 24 most recent steps, and older ones are fetched when you open the checklist and scroll to the top. Long conversations open faster and use less data; full reasoning, tool arguments and outputs, and diffs are still never sent over the message channel.\n- Questions left pending during a hot swap now end as a clean cancellation and the question card on your phone closes properly. Push delivery retries transient failures three times with backoff and is only recorded once actually delivered, so a brief hiccup no longer loses a message.\n- When the loopback port is taken, the self-check now names the occupying process and its PID. The switch verdict is unchanged, so machines that can connect normally are not affected.\n- Three port-conflict gaps fixed: only the process holding the loopback address counts as the occupant, the LAN port switches automatically on permission errors, and ZeroNews endpoints are marked dead only after repeated failed probes, then recover in place on the same tunnel with bounded retries.",
129
- "ja": "- 過程リストをターンごとのページ分割に変更しました。履歴メッセージには最新 24 件のステップ要約だけが含まれ、それ以前のステップはリストを開いて上端までスクロールしたときに取得されます。長い会話の読み込みが速くなり、通信量も減ります。推論全文・ツールの引数と出力・diff は引き続きメッセージ回線に一切送られません。\n- 差し替え中に保留された質問はキャンセルとして正常に終了し、端末の質問カードも閉じられます。プッシュ配信は一時的な失敗をバックオフ付きで 3 回再試行し、実際に届いたときだけ記録されるため、一瞬の不調でメッセージが失われません。\n- ループバックポートが占有されている場合、セルフチェックが占有プロセス名と PID を表示するようになりました。切り替え判定は変わらず、普通に接続できる端末に影響しません。\n- ポート競合の 3 つの抜けを修正しました。ループバックを占有するプロセスのみを占有者とみなし、権限エラー時は LAN ポートを自動で切り替え、ZeroNews の落ち先は複数回の失敗で初めて無効と判定し、同じトンネル内で上限付き再試行により自己復旧します。",
130
- "ko": "- 과정 목록을 턴별 페이지 방식으로 바꿨습니다. 기록 메시지에는 최근 24개 단계 요약만 담기고, 그보다 이전 단계는 목록을 열어 위쪽으로 스크롤할 때 가져옵니다. 긴 대화가 더 빠르게 열리고 데이터 사용량도 줄었습니다. 추론 전문, 도구 인자와 출력, diff는 여전히 메시지 채널로 전송되지 않습니다.\n- 교체 중 대기하던 질문은 취소로 정상 마무리되고 휴대전화의 질문 카드도 닫힙니다. 푸시 전송은 일시적 실패를 백오프로 3회 재시도하고 실제로 전달된 경우에만 기록하므로, 순간적인 문제로 메시지가 사라지지 않습니다.\n- 루프백 포트가 점유됐을 때 자체 점검이 점유 프로세스 이름과 PID를 알려줍니다. 전환 판정은 그대로라 정상적으로 연결되는 기기에 영향을 주지 않습니다.\n- 포트 충돌의 세 가지 빈틈을 보완했습니다. 루프백을 점유한 프로세스만 점유자로 보고, 권한 오류 시 LAN 포트를 자동으로 바꾸며, ZeroNews 착지점은 여러 번 탐지 실패 후에만 유효하지 않다고 판정한 뒤 같은 터널에서 횟수 제한 재시도로 복구합니다.",
131
- "de": "- Die Schrittlade wird jetzt pro Runde seitenweise geladen: Verlaufsnachrichten enthalten nur die 24 neuesten Schrittzusammenfassungen, ältere Schritte werden erst beim Öffnen der Liste und Scrollen nach oben geladen. Lange Gespräche öffnen schneller und verbrauchen weniger Daten; vollständige Begründungen, Werkzeugargumente und -ausgaben sowie Diffs werden weiterhin nicht über den Nachrichtenkanal gesendet.\n- Während eines Austauschs offengebliebene Fragen werden jetzt sauber als Abbruch beendet und die Fragekarte auf dem Telefon geschlossen. Push-Zustellungen wiederholen vorübergehende Fehler dreimal mit Backoff und werden erst nach tatsächlicher Zustellung verbucht, sodass eine kurze Störung keine Nachricht verliert.\n- Wenn der Loopback-Port belegt ist, nennt die Selbstprüfung jetzt den belegenden Prozess und seine PID. Die Umschaltentscheidung bleibt unverändert, sodass normal verbundene Geräte nicht beeinträchtigt werden.\n- Drei Lücken bei Portkonflikten geschlossen: Nur der Prozess auf der Loopback-Adresse gilt als Beleger, der LAN-Port wechselt bei Berechtigungsfehlern automatisch, und ZeroNews-Ziele werden erst nach mehreren fehlgeschlagenen Proben als tot markiert und mit begrenzten Wiederholungen im selben Tunnel wiederhergestellt.",
132
- "es": "- La lista de pasos ahora se carga por páginas: los mensajes del historial solo incluyen los 24 resúmenes de pasos más recientes, y los anteriores se obtienen al abrir la lista y desplazarse hacia arriba. Las conversaciones largas se abren más rápido y consumen menos datos; el razonamiento completo, los argumentos y salidas de herramientas y los diffs siguen sin enviarse por el canal de mensajes.\n- Las preguntas pendientes durante un recambio ahora terminan como una cancelación limpia y la tarjeta de pregunta del teléfono se cierra correctamente. Las notificaciones push reintentan los fallos temporales tres veces con espera progresiva y solo se contabilizan cuando se entregan de verdad, así que un fallo momentáneo ya no pierde un mensaje.\n- Cuando el puerto de loopback está ocupado, la autocomprobación muestra ahora el nombre del proceso ocupante y su PID. El criterio de cambio no se toca, así que los equipos que conectan con normalidad no se ven afectados.\n- Se corrigen tres huecos en conflictos de puertos: solo se cuenta como ocupante el proceso que retiene la dirección de loopback, el puerto LAN cambia automáticamente ante errores de permiso, y los destinos de ZeroNews se marcan como inactivos solo tras varias pruebas fallidas, recuperándose en el mismo túnel con reintentos limitados.",
133
- "fr": "- La liste des étapes est désormais chargée par pages : les messages d'historique ne contiennent que les 24 résumés d'étapes les plus récents, les anciens étant récupérés quand vous ouvrez la liste et remontez en haut. Les longues conversations s'ouvrent plus vite et consomment moins de données ; le raisonnement complet, les arguments et sorties d'outils et les diffs ne sont toujours pas envoyés sur le canal de messages.\n- Les questions en attente pendant un remplacement se terminent maintenant par une annulation propre et la carte de question sur le téléphone se ferme correctement. Les notifications push réessaient les échecs passagers trois fois avec un délai croissant et ne sont comptabilisées qu'après une livraison réelle : une simple panne ne fait plus perdre un message.\n- Lorsque le port de bouclage est occupé, l'auto-vérification indique désormais le nom du processus occupant et son PID. Le critère de bascule reste inchangé, donc les machines qui se connectent normalement ne sont pas affectées.\n- Trois lacunes des conflits de ports sont corrigées : seul le processus écoutant sur l'adresse de bouclage compte comme occupant, le port LAN change automatiquement en cas d'erreur d'autorisation, et les points de chute ZeroNews ne sont déclarés morts qu'après plusieurs sondages échoués, puis rétablis sur le même tunnel avec un nombre limité de tentatives.",
134
- "pt": "- A lista de etapas agora é carregada por páginas: as mensagens do histórico trazem apenas os 24 resumos de etapas mais recentes, e os anteriores são buscados quando você abre a lista e rola para o topo. Conversas longas abrem mais rápido e gastam menos dados; o raciocínio completo, os argumentos e saídas de ferramentas e os diffs continuam sem ser enviados pelo canal de mensagens.\n- As perguntas pendentes durante uma troca agora terminam como cancelamento limpo e o cartão de pergunta no telemóvel fecha corretamente. As notificações push repetem falhas temporárias três vezes com espera progressiva e só são contabilizadas quando realmente entregues, pelo que uma falha momentânea já não perde uma mensagem.\n- Quando a porta de loopback está ocupada, a verificação automática mostra agora o nome do processo ocupante e o PID. O critério de mudança não se altera, pelo que as máquinas que ligam normalmente não são afetadas.\n- Três falhas em conflitos de portas corrigidas: apenas o processo que escuta no endereço de loopback conta como ocupante, a porta LAN muda automaticamente em caso de erro de permissão, e os destinos ZeroNews só são considerados inativos após várias sondagens falhadas, recuperando-se no mesmo túnel com tentativas limitadas.",
135
- "ru": "- Список шагов теперь загружается постранично: сообщения истории содержат только 24 последних кратких описания шагов, а более ранние подгружаются, когда вы открываете список и прокручиваете его вверх. Длинные диалоги открываются быстрее и расходуют меньше трафика; полные рассуждения, аргументы и выводы инструментов и diff по-прежнему не отправляются через канал сообщений.\n- Вопросы, оставшиеся открытыми во время замены версии, теперь корректно завершаются как отмена, и карточка вопроса на телефоне закрывается. Push-уведомления повторяют кратковременные ошибки три раза с нарастающей задержкой и учитываются только после реальной доставки, поэтому кратковременный сбой больше не теряет сообщение.\n- Когда петлевой порт занят, самопроверка теперь показывает имя занимающего процесса и его PID. Критерий переключения не изменён, поэтому устройства, которые подключаются нормально, не затрагиваются.\n- Исправлены три пробела в обработке конфликтов портов: занимающим считается только процесс, слушающий на петлевом адресе, LAN-порт автоматически меняется при ошибке прав доступа, а точки выхода ZeroNews признаются нерабочими только после нескольких неудачных проверок и восстанавливаются на том же туннеле с ограниченным числом повторов.",
136
- "tr": "- Adım listesi artık sayfa sayfa yükleniyor: geçmiş mesajlar yalnızca en son 24 adım özetini taşıyor, daha eski adımlar listeyi açıp yukarı kaydırdığınızda alınıyor. Uzun sohbetler daha hızlı açılıyor ve daha az veri kullanıyor; tam akıl yürütme, araç argümanları ve çıktıları ve diff'ler yine mesaj kanalından hiç gönderilmiyor.\n- Sürüm değişimi sırasında bekleyen sorular artık temiz bir iptalle sonuçlanıyor ve telefondaki soru kartı düzgün kapanıyor. Anlık başarısızlıklarda push bildirimleri üç kez artan gecikmeyle yeniden deneniyor ve yalnızca gerçekten ulaştığında kaydediliyor; böylece kısa bir aksama mesajı kaybettirmiyor.\n- Döngüsel port meşgul olduğunda kendi kendini kontrol artık meşgul eden işlemin adını ve PID'sini gösteriyor. Geçiş kuralı değişmediği için normal bağlanan cihazlar etkilenmiyor.\n- Port çakışmasındaki üç boşluk giderildi: yalnızca döngüsel adresi dinleyen işlem meşgul sayılıyor, izin hatasında LAN portu otomatik değişiyor ve ZeroNews uç noktaları yalnızca birkaç başarısız yoklamadan sonra ölü sayılıp aynı tünelde sınırlı yeniden denemelerle kendini onarıyor."
125
+ "zh-Hans": "- 修复 Cloudflare 账号命名隧道启动失败:点「连接」不再报「启动失败:file 不能为空」,配好域名和凭据后隧道能正常起来。\n- 修复用自定义脚本启动 ZeroNews 时线路连不上:插件不再覆盖脚本自带的工作目录,按脚本自己的配置读取,隧道可以正常连接。",
126
+ "zh-Hant": "- 修復 Cloudflare 帳號命名隧道啟動失敗:點「連線」不再報「啟動失敗:file 不能為空」,配好網域和憑證後隧道能正常啟動。\n- 修復用自訂腳本啟動 ZeroNews 時線路連不上:外掛不再覆蓋腳本自帶的工作目錄,按腳本自己的設定讀取,隧道可以正常連線。",
127
+ "en": "- Fixed Cloudflare named tunnels (your own account) failing to start: tapping Connect no longer reports \"launch failed: file cannot be empty\". With a domain and credentials configured, the tunnel now starts normally.\n- Fixed ZeroNews routes failing when launched through a custom script: the plugin no longer overrides the working directory that the script sets itself, so it reads its own config and the tunnel connects normally.",
128
+ "ja": "- Cloudflare のアカウント命名トンネルが起動しない問題を修正:「接続」をタップしても「起動失敗:file が空」と出なくなり、ドメインと認証情報を設定すればトンネルが正常に起動します。\n- カスタムスクリプトで ZeroNews を起動したときに経路がつながらない問題を修正:プラグインがスクリプト自身の作業ディレクトリを上書きしなくなり、スクリプト自身の設定を読み込んでトンネルが正常に接続します。",
129
+ "ko": "- Cloudflare 계정 명명 터널이 시작되지 않던 문제를 수정했습니다. \"연결\"을 눌러도 \"시작 실패: file이 비어 있음\" 오류가 더 이상 나지 않으며, 도메인과 인증 정보를 설정하면 터널이 정상적으로 시작됩니다.\n- 사용자 지정 스크립트로 ZeroNews를 시작할 때 경로가 연결되지 않던 문제를 수정했습니다. 플러그인이 스크립트 자체의 작업 디렉터리를 덮어쓰지 않아 자체 설정을 읽어 터널이 정상적으로 연결됩니다.",
130
+ "de": "- Behoben: Cloudflare-Namens-Tunnel (eigenes Konto) ließen sich nicht starten. \"Verbinden\" meldet nicht mehr \"Start fehlgeschlagen: file ist leer\"; mit konfigurierter Domain und Zugangsdaten startet der Tunnel jetzt normal.\n- Behoben: ZeroNews-Routen funktionierten bei Start über ein benutzerdefiniertes Skript nicht. Das Plugin überschreibt das vom Skript selbst gesetzte Arbeitsverzeichnis nicht mehr, liest dessen eigene Konfiguration und der Tunnel verbindet sich wieder normal.",
131
+ "es": "- Corregido: los túneles con nombre de Cloudflare (cuenta propia) no arrancaban. Al pulsar \"Conectar\" ya no aparece \"error al iniciar: file está vacío\"; con el dominio y las credenciales configurados, el túnel arranca con normalidad.\n- Corregido: las rutas de ZeroNews no se conectaban al iniciarse con un script personalizado. El plugin ya no sobrescribe el directorio de trabajo que el script define por sí mismo, lee su propia configuración y el túnel se conecta con normalidad.",
132
+ "fr": "- Corrigé : les tunnels nommés Cloudflare (compte personnel) ne démarraient pas. Le bouton « Connecter » n'affiche plus « échec du démarrage : file est vide » ; une fois le domaine et les identifiants configurés, le tunnel démarre normalement.\n- Corrigé : les routes ZeroNews ne se connectaient pas lors d'un lancement par un script personnalisé. Le plugin n'écrase plus le répertoire de travail défini par le script lui-même, lit sa propre configuration et le tunnel se connecte normalement.",
133
+ "pt": "- Corrigido: os túneis nomeados da Cloudflare (conta própria) não iniciavam. Ao tocar em \"Conectar\", não aparece mais \"falha ao iniciar: file está vazia\"; com o domínio e as credenciais configurados, o túnel inicia normalmente.\n- Corrigido: as rotas do ZeroNews não conectavam ao ser iniciadas por um script personalizado. O plugin não substitui mais o diretório de trabalho definido pelo próprio script, lê a configuração do script e o túnel conecta normalmente.",
134
+ "ru": "- Исправлено: именованные туннели Cloudflare (собственной учётной записи) не запускались. При нажатии «Подключить» больше не появляется ошибка «не удалось запустить: file пуст»; с настроенным доменом и учётными данными туннель запускается нормально.\n- Исправлено: маршруты ZeroNews не подключались при запуске через пользовательский сценарий. Плагин больше не перезаписывает рабочую директорию, заданную самим сценарием, читает его собственную конфигурацию, и туннель подключается нормально.",
135
+ "tr": "- Düzeltildi: Cloudflare adlı tüneller (kendi hesabınız) başlatılamıyordu. \"Bağlan\"a dokunduğunuzda artık \"başlatma hatası: file boş\" mesajı çıkmıyor; alan adı ve kimlik bilgileri ayarlandığında tünel normal şekilde başlıyor.\n- Düzeltildi: ZeroNews rotaları özel bir betikle başlatıldığında bağlanmıyordu. Eklenti artık betiğin kendi çalışma dizinini üzerine yazmıyor, betiğin kendi yapılandırmasını okuyor ve tünel normal şekilde bağlanıyor."
137
136
  }
138
137
  }
139
138
  }