dsh-remote-bridge 2.3.6 → 2.3.7
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 +5 -1
- package/README.md +6 -0
- package/assets/screenshots/panel-app-download.png +0 -0
- package/assets/screenshots/panel-devices.png +0 -0
- package/assets/screenshots/panel-remote.png +0 -0
- package/assets/screenshots/panel-roots.png +0 -0
- package/docs/api/asyncapi.yaml +1 -1
- package/docs/api/openapi.yaml +2 -2
- package/kotlin-sdk/build.gradle.kts +1 -1
- package/lib/index.d.ts +8 -1
- package/lib/index.js +3 -3
- package/package.json +2 -1
- package/screenshots.json +6 -0
package/README.en.md
CHANGED
|
@@ -34,7 +34,11 @@ The desktop entry lives **inside your DSH settings**: look for the section title
|
|
|
34
34
|
|
|
35
35
|
Remote access remains disabled until a local administrator chooses a bind address, port, and initial device permissions.
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+

|
|
38
|
+
|
|
39
|
+
> **About these screenshots.** The four images under `assets/screenshots/` are generated by `scripts/generate-screenshots.ts`, which renders the panel from the same sources the tests use — `ADMIN_TABS`, `WORKSPACE_CSS` and `APP_QR_CODES` out of `src/client/` — so what you see is the shipped markup and stylesheet, not a redrawn mock-up. They show a machine that has just installed the plugin and not yet enabled remote access, which is the honest default state. An earlier revision of this README carried two UI screenshots; both predated the rename and showed the file tree and settings as two stacked dialogs, so they were removed rather than left to mislead.
|
|
40
|
+
>
|
|
41
|
+
> Storefronts pick these up automatically from [`screenshots.json`](./screenshots.json) — no pull request, no waiting on a maintainer. Update the images and push; the next build takes them.
|
|
38
42
|
|
|
39
43
|
## About the rename (2.0.4)
|
|
40
44
|
|
package/README.md
CHANGED
|
@@ -32,6 +32,12 @@
|
|
|
32
32
|
|
|
33
33
|
远程访问默认关闭。管理员可在本机 WebUI 中设置绑定 IP、端口和新设备的初始权限。
|
|
34
34
|
|
|
35
|
+

|
|
36
|
+
|
|
37
|
+
> **关于这几张截图。** `assets/screenshots/` 下的四张图由 `scripts/generate-screenshots.ts` 生成,它用与测试同一份产出来源渲染面板 —— `ADMIN_TABS`、`WORKSPACE_CSS`、`APP_QR_CODES` 全部取自 `src/client/`,所以你看到的是**发布包里的标记与样式表**,不是另画的示意图。图中呈现的是一台刚装好插件、尚未启用远程访问的机器,这是最诚实的默认状态。本 README 早前曾放过两张界面截图,但都摄于改名之前(标题还是「DSH 文件工作区」,远程访问那张还标着 v1.0.0,且把文件树与设置显示成上下两个弹窗),与上文描述的形态已不符,于是撤掉而不是留着误导。
|
|
38
|
+
>
|
|
39
|
+
> 市场会从 [`screenshots.json`](./screenshots.json) 自动取用这些图 —— 不必再来提 PR、不必等维护者。换了图直接推自己的仓库即可,下一次构建自动生效。
|
|
40
|
+
|
|
35
41
|
|
|
36
42
|
## 关于改名(2.0.4)
|
|
37
43
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/api/asyncapi.yaml
CHANGED
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.3.
|
|
4
|
+
version: 2.3.7
|
|
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.3.
|
|
27
|
+
pluginVersion: { type: string, const: 2.3.7 }
|
|
28
28
|
/pairings/exchange:
|
|
29
29
|
post:
|
|
30
30
|
security: []
|
package/lib/index.d.ts
CHANGED
|
@@ -716,8 +716,15 @@ interface Dsh02HostServices {
|
|
|
716
716
|
* Cordis event bus of the host context. Used for the two facts the old
|
|
717
717
|
* `apiProxy` event streams carried that no controller returns: session
|
|
718
718
|
* registry changes and the approval answerer waterfall.
|
|
719
|
+
*
|
|
720
|
+
* `options.prepend` 是 Cordis `EventsService.on` 的原生选项(cordis 4.0.2
|
|
721
|
+
* `src/events.ts:143`、`:255`:`const method = options.prepend ? 'unshift' : 'push'`)。
|
|
722
|
+
* 审批与提问两个钩子**必须**传 `{ prepend: true }` —— 原因见
|
|
723
|
+
* `ApprovalBridge.attach` 与 `QuestionBridge.attach` 的注释。
|
|
719
724
|
*/
|
|
720
|
-
on(event: string, listener: (...args: any[]) => unknown
|
|
725
|
+
on(event: string, listener: (...args: any[]) => unknown, options?: {
|
|
726
|
+
prepend?: boolean;
|
|
727
|
+
}): () => void;
|
|
721
728
|
}
|
|
722
729
|
/**
|
|
723
730
|
* 需要交接时,把每个 `image` 部件换成**两行文本**;否则原样返回。
|
package/lib/index.js
CHANGED
|
@@ -1995,7 +1995,7 @@ var ApprovalBridge = class {
|
|
|
1995
1995
|
});
|
|
1996
1996
|
if (outcome === "delegate") return next();
|
|
1997
1997
|
return outcome;
|
|
1998
|
-
});
|
|
1998
|
+
}, { prepend: true });
|
|
1999
1999
|
}
|
|
2000
2000
|
async respond(message) {
|
|
2001
2001
|
const entry = this.pending.get(message.rpcId);
|
|
@@ -2115,7 +2115,7 @@ var QuestionBridge = class {
|
|
|
2115
2115
|
rpcId
|
|
2116
2116
|
});
|
|
2117
2117
|
return await delegate;
|
|
2118
|
-
});
|
|
2118
|
+
}, { prepend: true });
|
|
2119
2119
|
}
|
|
2120
2120
|
/**
|
|
2121
2121
|
* 回答一条**正挂在前台等待**的提问(App 通过 `POST …/answer` 打进来)。
|
|
@@ -3714,7 +3714,7 @@ async function inspectResolvedPath(root, wirePath) {
|
|
|
3714
3714
|
}
|
|
3715
3715
|
//#endregion
|
|
3716
3716
|
//#region src/shared/version.ts
|
|
3717
|
-
const PLUGIN_VERSION = "2.3.
|
|
3717
|
+
const PLUGIN_VERSION = "2.3.7";
|
|
3718
3718
|
//#endregion
|
|
3719
3719
|
//#region src/host/router.ts
|
|
3720
3720
|
var ApiRouter = class {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-remote-bridge",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.7",
|
|
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",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"kotlin-sdk/src/**",
|
|
30
30
|
"kotlin-sdk/README.md",
|
|
31
31
|
"cordis.patch.yml",
|
|
32
|
+
"screenshots.json",
|
|
32
33
|
"README.md",
|
|
33
34
|
"README.en.md",
|
|
34
35
|
"LICENSE"
|