dsh-remote-bridge 2.4.0 → 2.4.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 +6 -6
- package/README.md +6 -6
- package/docs/api/asyncapi.yaml +32 -1
- package/docs/api/openapi.yaml +2 -2
- package/kotlin-sdk/build.gradle.kts +1 -1
- package/lib/index.js +6 -2
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
|
-
<img alt="Version" src="https://img.shields.io/badge/version-v2.4.
|
|
12
|
+
<img alt="Version" src="https://img.shields.io/badge/version-v2.4.1-087f8c">
|
|
13
13
|
<img alt="DSH plugin" src="https://img.shields.io/badge/DeepSeek_Harness-plugin-1f2328">
|
|
14
14
|
<img alt="Platforms" src="https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-586069">
|
|
15
15
|
<img alt="License" src="https://img.shields.io/badge/license-AGPL--3.0-2da44e">
|
|
@@ -77,10 +77,10 @@ dsh plugin --profile web add dsh-remote-bridge
|
|
|
77
77
|
dsh plugin --profile web add dsh-remote-bridge --registry https://registry.npmmirror.com
|
|
78
78
|
|
|
79
79
|
# 2. tarball from the GitHub release
|
|
80
|
-
dsh plugin --profile web add https://github.com/westanke/dsh-remote-bridge/releases/download/v2.4.
|
|
80
|
+
dsh plugin --profile web add https://github.com/westanke/dsh-remote-bridge/releases/download/v2.4.1/dsh-remote-bridge-v2.4.1.tgz
|
|
81
81
|
|
|
82
82
|
# 3. tarball from the Gitee release (faster from mainland China)
|
|
83
|
-
dsh plugin --profile web add https://gitee.com/westanke/dsh-remote-bridge/releases/download/v2.4.
|
|
83
|
+
dsh plugin --profile web add https://gitee.com/westanke/dsh-remote-bridge/releases/download/v2.4.1/dsh-remote-bridge-v2.4.1.tgz
|
|
84
84
|
|
|
85
85
|
npx @deepseek-ai/dsh web
|
|
86
86
|
```
|
|
@@ -97,7 +97,7 @@ Restart DSH after installation, then open settings — The section is titled **
|
|
|
97
97
|
To install a downloaded release archive:
|
|
98
98
|
|
|
99
99
|
```sh
|
|
100
|
-
dsh plugin --profile web add ./dsh-remote-bridge-v2.4.
|
|
100
|
+
dsh plugin --profile web add ./dsh-remote-bridge-v2.4.1.tgz
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
## First connection
|
|
@@ -331,11 +331,11 @@ pnpm pack
|
|
|
331
331
|
|
|
332
332
|
`npm pack` produces roughly a **0.29 MB** archive: 2.2.0 dropped the standalone page and its editor dependencies and turned source maps off, down from 1.72 MB.
|
|
333
333
|
|
|
334
|
-
v2.4.
|
|
334
|
+
v2.4.1 was developed against DSH `master@47f943859bef60e4160492346772ded9b24f765a`. CI covers Windows, Ubuntu, and macOS.
|
|
335
335
|
|
|
336
336
|
## Project
|
|
337
337
|
|
|
338
|
-
- Version: `v2.4.
|
|
338
|
+
- Version: `v2.4.1`
|
|
339
339
|
- Author: upstream [Hakunm](https://github.com/Hakunm); this fork maintained by [westanke](https://github.com/westanke)
|
|
340
340
|
- Repository: [GitHub](https://github.com/westanke/dsh-remote-bridge) · [Gitee](https://gitee.com/westanke/dsh-remote-bridge)
|
|
341
341
|
- npm: [`dsh-remote-bridge`](https://www.npmjs.com/package/dsh-remote-bridge) ([mainland-China mirror](https://registry.npmmirror.com/dsh-remote-bridge))
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
|
-
<img alt="Version" src="https://img.shields.io/badge/version-v2.4.
|
|
12
|
+
<img alt="Version" src="https://img.shields.io/badge/version-v2.4.1-087f8c">
|
|
13
13
|
<img alt="DSH plugin" src="https://img.shields.io/badge/DeepSeek_Harness-plugin-1f2328">
|
|
14
14
|
<img alt="Platforms" src="https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-586069">
|
|
15
15
|
<img alt="License" src="https://img.shields.io/badge/license-AGPL--3.0-2da44e">
|
|
@@ -76,10 +76,10 @@ dsh plugin --profile web add dsh-remote-bridge
|
|
|
76
76
|
dsh plugin --profile web add dsh-remote-bridge --registry https://registry.npmmirror.com
|
|
77
77
|
|
|
78
78
|
# ② GitHub Release 的 tarball
|
|
79
|
-
dsh plugin --profile web add https://github.com/westanke/dsh-remote-bridge/releases/download/v2.4.
|
|
79
|
+
dsh plugin --profile web add https://github.com/westanke/dsh-remote-bridge/releases/download/v2.4.1/dsh-remote-bridge-v2.4.1.tgz
|
|
80
80
|
|
|
81
81
|
# ③ Gitee Release 的 tarball(国内访问更快)
|
|
82
|
-
dsh plugin --profile web add https://gitee.com/westanke/dsh-remote-bridge/releases/download/v2.4.
|
|
82
|
+
dsh plugin --profile web add https://gitee.com/westanke/dsh-remote-bridge/releases/download/v2.4.1/dsh-remote-bridge-v2.4.1.tgz
|
|
83
83
|
|
|
84
84
|
npx @deepseek-ai/dsh web
|
|
85
85
|
```
|
|
@@ -95,7 +95,7 @@ npx @deepseek-ai/dsh web
|
|
|
95
95
|
从 GitHub Release 下载离线安装包时,可直接安装 tarball:
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
dsh plugin --profile web add ./dsh-remote-bridge-v2.4.
|
|
98
|
+
dsh plugin --profile web add ./dsh-remote-bridge-v2.4.1.tgz
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
## 第一次使用
|
|
@@ -325,11 +325,11 @@ pnpm pack
|
|
|
325
325
|
|
|
326
326
|
`npm pack` 的产物约 **0.29 MB**:2.2.0 删除独立页及其编辑器依赖、并关闭 source map 之后,从 1.72 MB 降下来。
|
|
327
327
|
|
|
328
|
-
v2.4.
|
|
328
|
+
v2.4.1 基于 DSH `master@47f943859bef60e4160492346772ded9b24f765a` 开发,CI 覆盖 Windows、Ubuntu 和 macOS。
|
|
329
329
|
|
|
330
330
|
## 项目信息
|
|
331
331
|
|
|
332
|
-
- 当前版本:`v2.4.
|
|
332
|
+
- 当前版本:`v2.4.1`
|
|
333
333
|
- 作者:上游 [Hakunm](https://github.com/Hakunm),本 fork 维护 [westanke](https://github.com/westanke)
|
|
334
334
|
- 仓库:[GitHub](https://github.com/westanke/dsh-remote-bridge) · [Gitee](https://gitee.com/westanke/dsh-remote-bridge)
|
|
335
335
|
- npm:[`dsh-remote-bridge`](https://www.npmjs.com/package/dsh-remote-bridge)([国内镜像](https://registry.npmmirror.com/dsh-remote-bridge))
|
package/docs/api/asyncapi.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
asyncapi: 3.0.0
|
|
2
2
|
info:
|
|
3
3
|
title: DeepSeek Harness Mobile Events
|
|
4
|
-
version: 2.4.
|
|
4
|
+
version: 2.4.1
|
|
5
5
|
description: |
|
|
6
6
|
Live file and authorized DSH chat events. Reconnect clients must refresh
|
|
7
7
|
REST state; unbounded replay is not provided.
|
|
@@ -143,6 +143,37 @@ components:
|
|
|
143
143
|
code: { type: string }
|
|
144
144
|
stopped: { type: boolean, const: true }
|
|
145
145
|
|
|
146
|
+
ChatTurnEnd:
|
|
147
|
+
type: object
|
|
148
|
+
description: |
|
|
149
|
+
A turn ended. Emitted for every `turn/end` the host reports, including the
|
|
150
|
+
ordinary `reason.kind === 'ok'` case. When the host stops a turn at its
|
|
151
|
+
output-token cap (`reason.kind === 'max-tokens'`) the reply is **truncated,
|
|
152
|
+
not failed** — this frame is the only place a client can learn that, because
|
|
153
|
+
no separate failure frame is emitted for it. Clients that ignore `reason`
|
|
154
|
+
keep working unchanged (the field is additive).
|
|
155
|
+
required: [sessionId, eventType]
|
|
156
|
+
properties:
|
|
157
|
+
sessionId: { type: string }
|
|
158
|
+
eventType: { type: string, const: turn/end }
|
|
159
|
+
seq: { type: integer }
|
|
160
|
+
reason:
|
|
161
|
+
type: object
|
|
162
|
+
description: |
|
|
163
|
+
Forwarded **verbatim** from the host; this repository does not interpret
|
|
164
|
+
it. Known `kind` values (kernel `turn-error.js` / `turn-max-tokens.js` /
|
|
165
|
+
`retry.js`): `ok` (normal), `error` (terminal failure — also delivered as
|
|
166
|
+
`chat.turn.failed`), `max-tokens` (output-token cap: reply truncated,
|
|
167
|
+
earlier output preserved — render as a **warning**, not an error),
|
|
168
|
+
`aborted` (cancelled by the user or a hook, e.g. signing out).
|
|
169
|
+
Unknown kinds must be ignored rather than treated as failure.
|
|
170
|
+
properties:
|
|
171
|
+
kind: { type: string }
|
|
172
|
+
error:
|
|
173
|
+
type: object
|
|
174
|
+
properties:
|
|
175
|
+
message: { type: string }
|
|
176
|
+
code: { type: string }
|
|
146
177
|
ChatDeliverablesPresented:
|
|
147
178
|
type: object
|
|
148
179
|
description: |
|
package/docs/api/openapi.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.1.0
|
|
2
2
|
info:
|
|
3
3
|
title: DeepSeek Harness Mobile API
|
|
4
|
-
version: 2.4.
|
|
4
|
+
version: 2.4.1
|
|
5
5
|
description: Versioned file and chat BFF for mobile and third-party DSH clients. HTTP and HTTPS are both supported.
|
|
6
6
|
servers:
|
|
7
7
|
- url: http://127.0.0.1:3090/api/v1
|
|
@@ -24,7 +24,7 @@ paths:
|
|
|
24
24
|
properties:
|
|
25
25
|
ok: { type: boolean, const: true }
|
|
26
26
|
version: { type: string, const: v1 }
|
|
27
|
-
pluginVersion: { type: string, const: 2.4.
|
|
27
|
+
pluginVersion: { type: string, const: 2.4.1 }
|
|
28
28
|
/pairings/exchange:
|
|
29
29
|
post:
|
|
30
30
|
security: []
|
package/lib/index.js
CHANGED
|
@@ -448,7 +448,7 @@ var CloudflaredTunnelManager = class {
|
|
|
448
448
|
};
|
|
449
449
|
//#endregion
|
|
450
450
|
//#region src/shared/version.ts
|
|
451
|
-
const PLUGIN_VERSION = "2.4.
|
|
451
|
+
const PLUGIN_VERSION = "2.4.1";
|
|
452
452
|
//#endregion
|
|
453
453
|
//#region src/host/capabilities.ts
|
|
454
454
|
/**
|
|
@@ -1520,11 +1520,15 @@ function normalizeDshEvent(frame, fallback, time = Date.now()) {
|
|
|
1520
1520
|
};
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
|
+
const turnReason = eventType === "turn/end" && isRecord$1(event.data) ? event.data.reason : void 0;
|
|
1523
1524
|
return {
|
|
1524
1525
|
id: frame.rpcId,
|
|
1525
1526
|
type: eventType === "turn/start" ? "chat.turn.start" : "chat.turn.end",
|
|
1526
1527
|
time,
|
|
1527
|
-
data: base
|
|
1528
|
+
data: turnReason === void 0 ? base : {
|
|
1529
|
+
...base,
|
|
1530
|
+
reason: turnReason
|
|
1531
|
+
}
|
|
1528
1532
|
};
|
|
1529
1533
|
}
|
|
1530
1534
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-remote-bridge",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Versioned REST bridge for DeepSeek Harness: remote access for trusted clients (chat, files, devices) plus a Phone-settings panel inside the DSH WebUI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@11.19.0",
|