dsh-zen-remote 1.1.15 → 1.1.16
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.md +3 -3
- package/README.zh-CN.md +3 -3
- package/docs/interface.md +25 -2
- package/lib/client.js +276 -126
- package/lib/types/client/MobileHomeChips.d.ts.map +1 -1
- package/lib/types/client/MobileSessionHeader.d.ts +6 -6
- package/lib/types/client/MobileSessionHeader.d.ts.map +1 -1
- package/lib/types/client/effects/gestures.d.ts.map +1 -1
- package/lib/types/client/effects/keyboard-guard.d.ts.map +1 -1
- package/lib/types/client/effects/model-sheet-extras.d.ts.map +1 -1
- package/lib/types/client/effects/workbench-ref-close.d.ts +2 -1
- package/lib/types/client/effects/workbench-ref-close.d.ts.map +1 -1
- package/lib/types/client/sidebar-panels.d.ts +63 -0
- package/lib/types/client/sidebar-panels.d.ts.map +1 -0
- package/lib/types/client/styles/compat.css.d.ts +1 -1
- package/lib/types/client/styles/compat.css.d.ts.map +1 -1
- package/lib/types/client/styles/composer.css.d.ts +1 -1
- package/lib/types/client/styles/composer.css.d.ts.map +1 -1
- package/lib/types/client/styles/header.css.d.ts +1 -1
- package/lib/types/client/styles/header.css.d.ts.map +1 -1
- package/lib/types/client/styles/layout.css.d.ts +1 -1
- package/lib/types/client/styles/layout.css.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client/MobileHomeChips.tsx +9 -5
- package/src/client/MobileSessionHeader.tsx +37 -65
- package/src/client/effects/gestures.ts +8 -17
- package/src/client/effects/keyboard-avoid.ts +2 -2
- package/src/client/effects/keyboard-guard.ts +10 -6
- package/src/client/effects/model-sheet-extras.ts +8 -2
- package/src/client/effects/workbench-ref-close.ts +16 -23
- package/src/client/sidebar-panels.ts +99 -0
- package/src/client/styles/compat.css.ts +10 -0
- package/src/client/styles/composer.css.ts +36 -18
- package/src/client/styles/header.css.ts +8 -4
- package/src/client/styles/layout.css.ts +20 -0
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
<p align="center">
|
|
5
5
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-0B7285?style=flat-square" alt="MIT"></a>
|
|
6
|
-
<img src="https://img.shields.io/badge/release-v1.1.
|
|
6
|
+
<img src="https://img.shields.io/badge/release-v1.1.16-5B4CF0?style=flat-square" alt="v1.1.16">
|
|
7
7
|
<img src="https://img.shields.io/badge/DSH-Web%20Profile-5B4CF0?style=flat-square" alt="DSH Web Profile">
|
|
8
8
|
</p>
|
|
9
9
|
|
|
@@ -45,7 +45,7 @@ Edit `~/.dsh/profiles/web/package.json` by hand — one line under `dependencies
|
|
|
45
45
|
```jsonc
|
|
46
46
|
{
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"dsh-zen-remote": "^1.1.
|
|
48
|
+
"dsh-zen-remote": "^1.1.16" // for local development: "link:/path/to/dsh-zen-remote"
|
|
49
49
|
},
|
|
50
50
|
"dsh": { "profile": { "bundles": [
|
|
51
51
|
"@deepseek-ai/dsh-base",
|
|
@@ -286,7 +286,7 @@ The mobile UI has specific adaptations for the plugins below. Every adaptation i
|
|
|
286
286
|
|
|
287
287
|
| Plugin | What the mobile adaptation does | Version tested |
|
|
288
288
|
| --- | --- | --- |
|
|
289
|
-
| [dsh-better-sidebar](https://github.com/omdsh-dev/DSH-better-sidebar) |
|
|
289
|
+
| [dsh-better-sidebar](https://github.com/omdsh-dev/DSH-better-sidebar) | 0.19+: all its tabs live in DSH 0.1.5's native right sidebar, which the host takes full screen on a phone (padded clear of the notch / home indicator) — the session header keeps an entry button for it, the left-edge swipe-back closes it, and tapping an @-reference in the file tree closes it. ≤ 0.18 (own right panel, DSH < 0.1.5 only): full-width phone drawer with notch safe area and a centred close pill | 0.19.1 (legacy rules: 0.15.0) |
|
|
290
290
|
| [@nanmicoder/dsh-agent-teams](https://github.com/NanmiCoder/dsh-agent-teams) | The AgentTeams activity overlay moves below the session header (its original position covered the header buttons) and hides itself on the session list; a subagent session keeps a tappable parent-session title in its header for jumping back | 0.1.9 |
|
|
291
291
|
| [@ychris12138/dsh-usage-stats](https://github.com/Ychris12138/dsh-usage-stats) | Usage and balance entries fold into the home-screen chips row | 0.2.9 |
|
|
292
292
|
| [@opendsh/dsh-plugin-scheduled-tasks](https://github.com/Ceelog/dsh-plugins) | The scheduled-tasks entry folds into the home-screen chips row | 0.2.3 |
|
package/README.zh-CN.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
<p align="center">
|
|
5
5
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-0B7285?style=flat-square" alt="MIT"></a>
|
|
6
|
-
<img src="https://img.shields.io/badge/release-v1.1.
|
|
6
|
+
<img src="https://img.shields.io/badge/release-v1.1.16-5B4CF0?style=flat-square" alt="v1.1.16">
|
|
7
7
|
<img src="https://img.shields.io/badge/DSH-Web%20Profile-5B4CF0?style=flat-square" alt="DSH Web Profile">
|
|
8
8
|
</p>
|
|
9
9
|
|
|
@@ -45,7 +45,7 @@ dsh plugin add dsh-zen-remote
|
|
|
45
45
|
```jsonc
|
|
46
46
|
{
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"dsh-zen-remote": "^1.1.
|
|
48
|
+
"dsh-zen-remote": "^1.1.16" // 本地开发换成 "link:/path/to/dsh-zen-remote"
|
|
49
49
|
},
|
|
50
50
|
"dsh": { "profile": { "bundles": [
|
|
51
51
|
"@deepseek-ai/dsh-base",
|
|
@@ -300,7 +300,7 @@ open http://127.0.0.1:3088/lan-gate/admin
|
|
|
300
300
|
|
|
301
301
|
| 插件 | 移动端适配内容 | 实测版本 |
|
|
302
302
|
| --- | --- | --- |
|
|
303
|
-
| [dsh-better-sidebar](https://github.com/omdsh-dev/DSH-better-sidebar) |
|
|
303
|
+
| [dsh-better-sidebar](https://github.com/omdsh-dev/DSH-better-sidebar) | 0.19+:它的全部 tab 都在 DSH 0.1.5 官方右侧栏里、手机上宿主自己切全屏(避让刘海与底部指示条)——会话页头部留入口按钮,左缘回退手势收它,文件树里点 @ 引用后自动收起。≤ 0.18(自绘右栏,只在 DSH < 0.1.5 上):手机全宽抽屉并避让刘海安全区、底部居中的关闭按钮 | 0.19.1(老版规则 0.15.0) |
|
|
304
304
|
| [@nanmicoder/dsh-agent-teams](https://github.com/NanmiCoder/dsh-agent-teams) | AgentTeams 活动浮层挪到会话头部下方(原位置压住头部按钮)、会话列表页自动隐藏;子代理会话头部保留可点的父会话标题,一键切回主会话 | 0.1.9 |
|
|
305
305
|
| [@ychris12138/dsh-usage-stats](https://github.com/Ychris12138/dsh-usage-stats) | 用量与余额入口收进主屏 chips 行 | 0.2.9 |
|
|
306
306
|
| [@opendsh/dsh-plugin-scheduled-tasks](https://github.com/Ceelog/dsh-plugins) | 定时任务入口收进主屏 chips 行 | 0.2.3 |
|
package/docs/interface.md
CHANGED
|
@@ -36,7 +36,7 @@ v1.0.0(fork 自 [mexiaosqwq/dsh-web-mobile](https://github.com/mexiaosqwq/dsh-
|
|
|
36
36
|
|
|
37
37
|
会话页头部只留五样东西:返回 · 会话名(+ 运行状态点)· 当前视图名(对话/轨迹,带双点指示)· 信息卡入口 · 侧栏入口。官方的 Chat/Trajectory 页签视觉隐藏但 DOM 还在,点信息卡里的分段控件相当于代点它。
|
|
38
38
|
|
|
39
|
-
侧栏入口按「现场有哪个侧栏」三态路由(2026-09-11
|
|
39
|
+
侧栏入口按「现场有哪个侧栏」三态路由(2026-09-11 DSH 0.1.5 长出官方右侧栏之后定的规矩;2026-09-21 起官方优先,issue #11 / PR #12):宿主有右侧栏(0.1.5+)就代点官方角位的展开钮 / 面板里的收起钮——装没装 dsh-better-sidebar 都一样,因为 better-sidebar 0.19 起自己不画右栏了,它注册的全部 tab(文件树 / 文件变动 / 终端 / 浏览器 / 第三方 `registerTab()`)都进了官方右侧栏,而这个面板在手机上由宿主自己切成全屏、自带收起钮;0.19 只剩一个底部工作台(`[data-dsh-bottom-toggle]` / `_bottomPanel`),手机上不开放。没有官方右栏但装了老版 better-sidebar(≤ 0.18,DSH < 0.1.5)就代点它自己的开关(原设计);两者都没有就不渲染。无论哪种,官方角位的 ExpandButton 与 better-sidebar 自己的按钮在手机端都隐藏——头部只有我们这一枚侧栏钮。锚点、探测和代点集中在 `src/client/sidebar-panels.ts`,头部按钮、左缘回退手势、文件树 @ 引用后自动收起三处共用;全部锚在稳定 DOM 标记(`[data-sidebar-right-panel]` 及两个开合控件的 `data-sidebar-right-*`、老版的 `[data-dsh-better-sidebar]`),不看语言、不看类名散列。
|
|
40
40
|
|
|
41
41
|
### composer 重排
|
|
42
42
|
|
|
@@ -155,6 +155,29 @@ composer 最左的回形针打开的是**手机本地**的文件选择器(iOS
|
|
|
155
155
|
`keepFocus` 强制聚焦会直接弹键盘并把输入框顶上去,开 会话自动聚焦也复发。
|
|
156
156
|
两个 effect 的识别同步扩到 contenteditable,实测:附件钮的强制聚焦被糊掉、
|
|
157
157
|
用户直接点输入框的聚焦保留。
|
|
158
|
+
- 适配 dsh-better-sidebar `0.19`(issue #11、PR #12 及其补齐,2026-09-21,本机 0.1.5-rc.2 +
|
|
159
|
+
0.19.1 真界面逐项核过):
|
|
160
|
+
- 头部侧栏钮点了没反应——0.19 退役了自己的右栏,老锚点
|
|
161
|
+
`[data-dsh-better-sidebar] button[class$="_toggleButton"]` 命中 0 个元素,`?.click()`
|
|
162
|
+
静默空操作。路由改为**官方右侧栏优先**(0.19 把全部 tab 都注册进去了,手机上宿主自己
|
|
163
|
+
切全屏),老版 better-sidebar 分支只在 DSH < 0.1.5 时走;同一根因下死掉的另外几处
|
|
164
|
+
(左缘回退手势收面板、文件树 @ 引用后自动收起)改为对官方面板生效,锚点集中到
|
|
165
|
+
`sidebar-panels.ts`。首页「文件」chip、关闭 pill、`compat.css.ts` 的三段 better-sidebar
|
|
166
|
+
规则都是老版专用,0.19 上按设计不命中(chip 因此不显示)——保留给老组合,不改。
|
|
167
|
+
- 官方右栏全屏打开时顶部没留安全区,tab 条和「退出全屏 / 收起」钮压在手机状态栏下面
|
|
168
|
+
(真机报告):宿主把全屏面板设成 `position: fixed; inset: 0`,和左抽屉一样逃出了
|
|
169
|
+
frame 的安全区 padding。给 `[data-sidebar-right-panel="fullscreen"]` 补上下两个
|
|
170
|
+
安全区 padding(`layout.css.ts`,紧挨着左抽屉那条;`?mobile-nav-inset=54,34` 验过,
|
|
171
|
+
tab 条落到 y=54、面板高度不变)。
|
|
172
|
+
- 输入框打字后切后台再切回,点到文字上就瞬间失焦:Lexical 在 contenteditable 里生成
|
|
173
|
+
`<p>` / `<span>`,pointerdown 落在子节点上,`hasAttribute('data-composer-input')`
|
|
174
|
+
判空 → 视为未授权 → focusin 时被 S9 守卫 blur。不只切后台会触发,任何 focusout 之后
|
|
175
|
+
再点到文字上都会。识别改为 `.closest('[data-composer-input]')`(PR #12)。
|
|
176
|
+
- 模型弹层没变成底部抽屉、退化成原生小浮窗:0.1.5 的 ModelSelect 把菜单 portal 到了
|
|
177
|
+
`document.body`(`id` 为 `${useId()}-menu`、`role=menu`,rc.2 上唯一带这种 id 的
|
|
178
|
+
body 级菜单),`${MODEL} > [class$="_menu"]` 不再命中。抽屉规则、行高、
|
|
179
|
+
`model-sheet-extras` 的搬家目标都改成两种写法并存(`:is()`);z-index 保持 60
|
|
180
|
+
(四点命中实测没有东西盖住它,也仍在信息卡的 70 之下),选项行高保持 48px 的 44pt 规矩。
|
|
158
181
|
- composer 行里第三方插件的入口(`conversation.input.right`)在手机端整体移进模型弹层,
|
|
159
182
|
与「模型」「推理等级」并列成行——行是不换行的,模型名是唯一能让宽度的东西,
|
|
160
183
|
订阅插件的速度 chip(带文字约 70px)加上识图开关会把它挤没(2026-09-06 用户报)
|
|
@@ -288,7 +311,7 @@ composer 最左的回形针打开的是**手机本地**的文件选择器(iOS
|
|
|
288
311
|
|
|
289
312
|
## 兼容插件
|
|
290
313
|
|
|
291
|
-
- [dsh-better-sidebar](https://github.com/omdsh-dev/DSH-better-sidebar)(
|
|
314
|
+
- [dsh-better-sidebar](https://github.com/omdsh-dev/DSH-better-sidebar)(0.19+:它的全部 tab 都在 DSH 0.1.5 官方右侧栏里,手机上宿主自己切全屏,本插件在会话页头部给它留入口位、左缘回退手势收它、文件树里点 @ 引用后自动收起——面板全屏盖住会话页,草稿变化看不见,收起本身就是点击反馈;≤ 0.18 自绘右栏的老版本:全宽抽屉 + 安全区 + 底部关闭 pill,只在 DSH < 0.1.5 上还会走到)——本机实测 **0.19.1**(老版规则实测 0.15.0)
|
|
292
315
|
- [@nanmicoder/dsh-agent-teams](https://github.com/NanmiCoder/dsh-agent-teams)(AgentTeams 活动浮层:手机端挪到会话头部下方、避开安全区,会话列表页隐藏;子代理会话头部保留可点的父会话面包屑用于切回)——本机实测 **0.1.9**
|
|
293
316
|
- [@ychris12138/dsh-usage-stats](https://github.com/Ychris12138/dsh-usage-stats)(用量与余额,主屏 chips 行可直接打开;旧包名 `dsh-usage-stats` 已废弃,两个名字同时留在 profile 里会因重复的 `usage-stats` 行让 DSH 起不来)——本机实测 **0.2.9**
|
|
294
317
|
- [@opendsh/dsh-plugin-scheduled-tasks](https://github.com/Ceelog/dsh-plugins)(定时任务,主屏 chips 行自动收割入口)——本机实测 **0.2.3**
|