dsh-plugin-tether 0.1.20 → 0.1.21
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/CHANGELOG.md +10 -0
- package/index.js +5 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
本文件记录面向用户的变化。每个版本的这一节会原样作为该版本 Release 的说明。
|
|
4
4
|
|
|
5
|
+
## 0.1.21
|
|
6
|
+
|
|
7
|
+
### 修复
|
|
8
|
+
|
|
9
|
+
- **在 dsh desktop 里启动时会弹出一个控制台窗口**([#15](https://github.com/zexadev/dsh-tether/issues/15))。插件拉起 sidecar 时没让 Windows 隐藏新窗口。dsh desktop 的插件宿主是以 Node 模式运行的 Electron,属 GUI 程序、自己没有控制台,Windows 于是给 sidecar(控制台程序)新分配一个控制台,连窗口一起显示出来。在终端里跑 dsh 不会这样:宿主已有控制台,子进程直接继承,所以这个窗口只在 desktop 下出现。现在新分配的窗口不再显示;终端里跑 dsh 时 sidecar 的日志照旧打在同一个终端。
|
|
10
|
+
|
|
11
|
+
### English
|
|
12
|
+
|
|
13
|
+
Starting the plugin inside dsh desktop popped up a console window ([#15](https://github.com/zexadev/dsh-tether/issues/15)). The plugin spawned its sidecar without asking Windows to hide the new window. The plugin host of dsh desktop is Electron running in Node mode — a GUI program that owns no console — so Windows allocated a fresh console for the sidecar, which is a console program, and showed its window along with it. Running dsh in a terminal never did this, because the host already owns a console and the child simply inherits it, which is why the window only ever appeared under desktop. The newly allocated window is now hidden, and sidecar logs still go to the same terminal when you run dsh there.
|
|
14
|
+
|
|
5
15
|
## 0.1.20
|
|
6
16
|
|
|
7
17
|
### 修复
|
package/index.js
CHANGED
|
@@ -175,7 +175,11 @@ function apply(ctx, config = {}) {
|
|
|
175
175
|
// sidecar 的人读日志与这里打在同一个终端上,语言跟着走,免得一半中文一半英文
|
|
176
176
|
const args = ['host', '--proxy-target', proxyTarget, '--lang', terminalZh ? 'zh' : 'en']
|
|
177
177
|
if (config.pair) args.push('--pair')
|
|
178
|
-
|
|
178
|
+
// windowsHide:dsh desktop 的插件宿主是 ELECTRON_RUN_AS_NODE 跑的 Electron,GUI 子系统、自己没有
|
|
179
|
+
// console,于是 Windows 给这个 console 子系统的 sidecar 分配一个新 console 并把窗口显示出来。该
|
|
180
|
+
// 选项让 libuv 传 SW_HIDE,新分配的窗口不显示;stderr 的 inherit 不受影响,在终端里跑 dsh 时
|
|
181
|
+
// sidecar 的日志照旧打在同一个终端
|
|
182
|
+
const child = spawn(binary, args, { stdio: ['pipe', 'pipe', 'inherit'], windowsHide: true })
|
|
179
183
|
ctx.effect(() => () => { child.kill() })
|
|
180
184
|
/** sidecar 不在了的原因;undefined = 活着。等它回话的路由用来立即报错 */
|
|
181
185
|
let sidecarGone
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-tether",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "Mobile client for the DeepSeek Harness — use the dsh on your dev machine from your Android or iOS phone, remotely across networks, peer-to-peer over iroh with no server to set up (falls back to a relay that only sees ciphertext)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"@deepseek-ai/dsh-user-approval": { "optional": true }
|
|
56
56
|
},
|
|
57
57
|
"optionalDependencies": {
|
|
58
|
-
"dsh-tether-host-android-arm64": "0.1.
|
|
59
|
-
"dsh-tether-host-darwin-arm64": "0.1.
|
|
60
|
-
"dsh-tether-host-darwin-x64": "0.1.
|
|
61
|
-
"dsh-tether-host-linux-arm64": "0.1.
|
|
62
|
-
"dsh-tether-host-linux-x64": "0.1.
|
|
63
|
-
"dsh-tether-host-win32-x64": "0.1.
|
|
58
|
+
"dsh-tether-host-android-arm64": "0.1.21",
|
|
59
|
+
"dsh-tether-host-darwin-arm64": "0.1.21",
|
|
60
|
+
"dsh-tether-host-darwin-x64": "0.1.21",
|
|
61
|
+
"dsh-tether-host-linux-arm64": "0.1.21",
|
|
62
|
+
"dsh-tether-host-linux-x64": "0.1.21",
|
|
63
|
+
"dsh-tether-host-win32-x64": "0.1.21"
|
|
64
64
|
}
|
|
65
65
|
}
|