其他
完整应用
deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
以静态 Cordis 客户端插件方式为 DeepSeek Harness Web GUI 做移动端适配,不改动产品源码,从 profile 卸载即完整还原。
mobui-static(静态客户端插件,挂在 dsh profile 的 loader 层)[data-cordis-panel] transform 陷阱修复)mobui-1 / mobui-2(进程重启即失);已静态化——随 profile 启动自动加载,重启不丢,不依赖会话/plugins/mobui-static/client.js,经 window.__ModuleLoader__ 注入页面./install.sh # 装入 web profile
DSH_PROFILE=demo ./install.sh # 装入其他 profile
脚本幂等,可重复执行。装完重启 profile 生效(web: 重启 web 进程)并刷新浏览器。
手动安装等价步骤(脚本做的事):
# 1) 从源码生成静态插件包(package.json + index.js + client.js)
node scripts/build-static.js mobui7-plugin-client.js ~/dsh-plugins/mobui-static
# 2) 装入 profile
dsh plugin --profile web add ~/dsh-plugins/mobui-static
# 3) 在 profile 的 cordis.patch.yml 挂载 loader 条目
- insert:
- id: mobui
name: 'mobui-static'
# 4) 重启 profile
移动端(max-width: 1023.98px)下:
shell.overlay 插槽,id mobui7-fab/mobui7-scrim),点遮罩即关抽屉;会话与 hero 均可点。transform:none + 100vw,对话框 position:fixed inset:0 全屏,nav 变顶部横向滚动行);[data-cordis-panel] 同陷阱一并修复(钉进抽屉盒内,实测 296px 完整内嵌)。flex:0 0 auto; min-width:34px 永不被裁;抽屉滞留遮挡发送的路径已被"选定会话即关抽屉"消除。prefers-reduced-motion 尊重、Toast 层级协议(内容 auto < 遮罩 29 < 抽屉 30 < 详情 31 < Toast 32)。root/sidebar/conversation/details 均为 replaceRisk: shadows-shipped-ui 的单一占位者;替换它们会连带拆除其声明的全部子插槽。插件改为在 @media (max-width: 1023.98px) 下用全局样式表重排现有布局。钩子,不碰 CSS Modules 类名。** 构建产物中类名是哈希的(如.pI_x6G_frame),跨构建不稳定。插件锚定 AppFrame 写出的data-sidebar-collapsed/data-details-collapsed/data-shell-overlay/data-side属性与结构选择器(:has()+:nth-child),并对帧内联的grid-template-columns用!important` 覆盖。ctx.get('layout').toggleSidebar() 写回同一商店。客户端半依赖宿主 shell 提供:
React(经 module loader require('react'))layout(@deepseek-ai/dsh-client-ui-layout)与 slots(@deepseek-ai/dsh-client-runtime)——已在 dsh.client.inject 声明details 占位者受 chatStore 跨插件私有限制,<996px 的详情可用性属上游产品缺口。document 全局:若插件运行环境屏蔽该全局,该功能静默失效(有 typeof 守卫,不会报错)。layout 服务的 toggleSidebar();若产品未来改变该服务面,插件需同步更新。mobui7-plugin-client.js — 单一事实源(CSS + 行为 + 插槽注册的完整客户端插件函数体)mobui7.css — 内嵌 CSS 的可读独立副本mobui7-page.js — 页面行为逻辑的可读独立副本(mobui7Install(api) 抽象)scripts/build-static.js — 源码 → 静态插件包生成器install.sh — 一键安装(幂等)历史调试脚本(probe-/sim-/verify-mobile.cjs)与截图(p7/p7b/s7/s8/shot-/sim-/v5-*.png)及上游克隆
repo/已清理;旧验证结论见 git 历史。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。