dsh-client-ui-responsive
by kelai141
dsh-mobile 生态 · dsh-mobile-apk(壳 APK)· dsh-shell-termux(shell)· dsh-host-web-compat(浏览器兼容)· dsh-mobile(协调仓库,private)
Part of the dsh-mobile ecosystem: dsh-mobile-apk (shell APK), dsh-shell-termux (shell), dsh-host-web-compat (browser compat), coordinated by the private dsh-mobile repo.
安装
dsh plugin --profile web add github:kelai141/dsh-client-ui-responsiveGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
dsh-mobile 生态 · dsh-mobile-apk(壳 APK)· dsh-shell-termux(shell)· dsh-host-web-compat(浏览器兼容)· dsh-mobile(协调仓库,private)
DeepSeek Harness Web UI 的移动响应式 AppFrame:
上游 ui-layout 的即插即用替代品,新增 Mobile 形态(<640px)——抽屉侧栏、底部 sheet、带汉堡的顶栏、安全区;
Wide/Narrow 行为与上游逐字节一致。
快速开始
1. 安装(放入 web profile 的 node_modules,模式见 dsh-shell-termux)。
2. 挂载(profile 的 cordis.patch.yml):
- id: ui-layout
disabled: true
- insert:
- id: ui-responsive
name: '@dsh-android/dsh-client-ui-responsive'
3. 重启,验证浏览器名册(window.__DSH_BOOT__ 含 @dsh-android/dsh-client-ui-responsive,ui-layout 消失)。
断点体系
| 档位 | 宽度 | 形态 |
|---|---|---|
| Wide | ≥1024px | 三栏,上游行为 |
| Narrow | 640–1024px | 上游自动折叠 rail + 手动展开 |
| Mobile | <640px | 单栏:sidebar→左抽屉、details→底部 sheet、顶栏+汉堡、安全区 |
横屏手机(≥640 逻辑像素)原样复用 Wide/Narrow 界面。
行为说明
- 槽位与服务不变:
sidebar/conversation/details/shell.overlay与ctx.layout与 ui-layout 完全一致——消费方(ui-sidebar、ui-conversation)零改动; - 移动形态语义:汉堡切换抽屉(点遮罩关闭);
ctx.layout.openDetails()弹出底部 sheet;shell.overlay保持最顶层(z 20); - 旋转即时切换:同一套 rAF 节流 ResizeObserver 驱动;
prefers-reduced-motion关闭过渡。
构建
npm install # 基线钉 @deepseek-ai/* 0.1.0-rc.6
npm run build # tsc(lib/types)+ tsdown(lib/client.js 浏览器包)
npm run typecheck
浏览器包遵循 __ModuleLoader__.load 契约;改动后先重建再探测线上服务(registry 提供的是 lib/client.js 产物)。
测试
- 宿主 CDP 组件级:412px(抽屉开合/遮罩)与 1280px(三栏回归)——见协调仓库验证日志;
- 旧内核浏览器(ES2024 前 WebView)无法加载客户端包:请用较新 WebView(系统 WebView 即可), 浏览器兼容插件可作兜底。
License
MIT。派生自 @deepseek-ai/dsh-client-ui-layout(MIT, © 2026 DeepSeek),见 NOTICE。
设计文档:docs/design.md。
原始 README: https://github.com/kelai141/dsh-client-ui-responsive/blob/main/README.zh.md ↗
同类插件
查看全部 →
dsh-web-ui-all
DSH Web UI 插件与皮肤合集:任务看板、git 图、右侧面板、远程移动端 UI、桌宠、实时 token 统计与皮肤中心。

dsh-web-ui
DSH Web UI 插件与皮肤合集:任务看板、git 图、右侧面板、远程移动端 UI、桌宠、实时 token 统计与皮肤中心。

dsh-TUI
Claude Code 风格全屏终端 UI:像素鲸鱼顶栏、实时工作状态行、思考流式展开。

DSH-better-sidebar
侧边栏完整工作台:内置文件渲染编辑、终端、Git 与子代理,支持三方插件注册新 Tab。

working-activity
让 agent 的"工作状态行"活过来——实时工具动态与进度、俏皮文案、模型自述、上下文预警。同一套想法,适配两个平台: pi CLI 与 DeepSeek Harness(DSH) 。

deepseek-idesign
可视化设计工作室,支持网站、App 原型、海报、信息卡、报告和杂志的模板创建、元素编辑、选区级 AI 草稿衔接与导出。