@marktrue/dsh-mobile-remote 3.3.0-alpha.1 → 3.3.0-rc.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/CHANGELOG.md +15 -0
- package/docs/03-api.md +3 -2
- package/lib/index.js +6 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v3.3.0-rc.1(build 62,issues #105/#107/#117/#125/#136/#138/#156)— 3.3.0 发布候选
|
|
4
|
+
|
|
5
|
+
> 插件 `3.3.0-rc.1` / App `3.3.0+62` / 载体 `3.3.0-rc.1-app`。
|
|
6
|
+
|
|
7
|
+
### 相对 alpha.1 的修复
|
|
8
|
+
|
|
9
|
+
- **#156 / alpha 验收 D1**:`/plugin-inventory` 的 `host.restartSupported` 始终下发 bool;App 在 `restartRequired` 时只在宿主支持时渲染「重启电脑端」,不支持时明确提示在电脑端重启。契约测试覆盖 unsupported=false / systemd=true,Widget 覆盖渲染/隐藏。
|
|
10
|
+
- alpha 真机验收:A(代理面板)、C(四项功能)、E(320/深色/1.5x)通过;D(旧宿主/旧插件降级)用户实机通过;B3 重启按钮在 #156 修复后由 rc 补验。
|
|
11
|
+
- 功能范围与 alpha.1 相同:#105/105a/105b、#107、#117、#125、#136、#138,详见下一条 alpha.1 条目。
|
|
12
|
+
|
|
13
|
+
### 已知未验证 / 风险
|
|
14
|
+
|
|
15
|
+
- B3 重启按钮真实 `restart-required` 路径需 rc 真机补验;真实 systemd/前台 respawn/容器逐形态未测。
|
|
16
|
+
- #150 脱底空白、#151 手机提问卡偶发缺失仍独立跟踪;#137 上游 PR #98 仍 OPEN,等待 merge。
|
|
17
|
+
|
|
3
18
|
## v3.3.0-alpha.1(build 61,issues #105/#107/#117/#125/#136/#138)— 3.3.0 功能候选
|
|
4
19
|
|
|
5
20
|
> 插件 `3.3.0-alpha.1` / App `3.3.0+61` / 载体 `3.3.0-alpha.1-app`。
|
package/docs/03-api.md
CHANGED
|
@@ -1551,7 +1551,7 @@ POST 请求体:`{"sessionId","repositoryId","tips":[...],"limit"?,"snapshotId"
|
|
|
1551
1551
|
"complete": true,
|
|
1552
1552
|
"degraded": false,
|
|
1553
1553
|
"reason": "",
|
|
1554
|
-
"host": { "id": "<宿主稳定身份>", "pluginVersion": "3.3.0" },
|
|
1554
|
+
"host": { "id": "<宿主稳定身份>", "pluginVersion": "3.3.0", "restartSupported": false },
|
|
1555
1555
|
"plugins": [{
|
|
1556
1556
|
"id": "@scope/pkg", "name": "@scope/pkg", "title": { "zh": "显示名", "en": "Display" },
|
|
1557
1557
|
"description": null, "packageName": "@scope/pkg", "version": "1.2.3",
|
|
@@ -1570,7 +1570,8 @@ POST 请求体:`{"sessionId","repositoryId","tips":[...],"limit"?,"snapshotId"
|
|
|
1570
1570
|
- **启用与健康分离**:`enabled` 保留宿主配置启用事实(即使有兼容/加载错误也不改写为停用);健康/兼容错误由 `health`/`compatibility` 单独表达。`ok` 仅在**所有 bundle rows 都匹配且 fiberPhase 全为 active**(或独立 entry active)时给出。缺失运行期服务/抛错/空 entries/无匹配(`runtime-unknown`)、`pending|loading|unloading`(`starting`)、`failed`(`failed`)都不得冒充健康。不返回 `diagnostic` 原文。
|
|
1571
1571
|
- **兼容事实**:只有宿主明确报告 `incompatible-version` 才是 `state:"incompatible"`(`ok:false`,`requirements` ≤4 项);其余无判定信息一律 `state:"unknown"`、`ok:null`,不得 `ok:true`。
|
|
1572
1572
|
- **来源本地化**:服务端 `label` 是中文兜底;App 对已知 `kind` 按当前语言映射,未知 kind 才回退 `label`。
|
|
1573
|
-
- `current=true`
|
|
1573
|
+
- `current=true` 表示该插件是当前手机连接所依赖的插件;不提供任何安装/升级/卸载/启停/重启**写方法**。
|
|
1574
|
+
- **`host.restartSupported`(bool,始终下发;issue #156)**:当前宿主形态是否允许手机触发重启(`restartFormOf() !== "unsupported"`)。仅作为能力位,供 App 在 `restartRequired` 时决定是否显示「重启电脑端」;实际重启仍走 `POST /plugin-inventory/restart`(#147,需显式 confirm)。旧宿主缺字段时 App 按 `false` 处理。
|
|
1574
1575
|
- `updateAvailable` 固定 `null`:更新候选检查属于 #146/#147,本端点不触网检查 registry。
|
|
1575
1576
|
|
|
1576
1577
|
### 6.26 插件安装/升级(v3.3,issue #146)
|
package/lib/index.js
CHANGED
|
@@ -4746,7 +4746,12 @@ export function apply(ctx, config, runtime = {}) {
|
|
|
4746
4746
|
complete,
|
|
4747
4747
|
degraded: !complete,
|
|
4748
4748
|
reason,
|
|
4749
|
-
host: {
|
|
4749
|
+
host: {
|
|
4750
|
+
id: hostIdentity,
|
|
4751
|
+
pluginVersion: pluginVersion(),
|
|
4752
|
+
// #156:当前宿主是否允许手机触发重启;只读能力位,不触发重启。
|
|
4753
|
+
restartSupported: hostRestartSupported(),
|
|
4754
|
+
},
|
|
4750
4755
|
plugins,
|
|
4751
4756
|
installable: bundlesAvailable ? pluginInstallableFromBundles(bundles) : [],
|
|
4752
4757
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marktrue/dsh-mobile-remote",
|
|
3
|
-
"version": "3.3.0-
|
|
3
|
+
"version": "3.3.0-rc.1",
|
|
4
4
|
"description": "DSH Mobile:把 DeepSeek Harness 变成随身控制台——手机远程发消息派活、看进度、收通知、审批决策、管理会话;配套 Flutter App(当前 Android 端,iOS 未开发)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"qrcode"
|
|
53
53
|
],
|
|
54
54
|
"optionalDependencies": {
|
|
55
|
-
"@marktrue/dsh-mobile-remote-app": "npm:@marktrue/dsh-mobile-remote@3.3.0-
|
|
55
|
+
"@marktrue/dsh-mobile-remote-app": "npm:@marktrue/dsh-mobile-remote@3.3.0-rc.1-app"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@deepseek-ai/dsh-credentials": ">=0.1.0-rc.6 <=0.2.2 || >=0.2.0-0 <0.2.0 || >=0.2.1-0 <0.2.1 || >=0.2.2-0 <0.2.2",
|