dsh-web-ui
zhu1090093659
Plugin and skin collection for DeepSeek Harness (DSH) Web UI - task board, git graph, right-side panel, remote mobile UI, pet, live token stats, and skin center.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:BaihaWhite/attach-plus
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DeepSeek Harness 的 web-ui 插件(双面 bundle)。改造对话输入框: 原指令菜单的「+」按钮显示为「/」字形,新增「+」按钮分类上传 图片 / 文档 / 其他文件。
POST /api/dsh-attach-plus/upload 落盘到会话工作区 uploads/ 目录,
并在草稿末尾追加「附件: 路径」行,模型借助自身文件工具读取。命令行(推荐):
dsh plugin --profile web add github:BaihaWhite/attach-plus
插件商店(设置 → 插件 → 插件商店,搜索 attach-plus):
attach-plus(仓库已打 dsh-plugin topic);手动(profile 补丁 + 符号链接):
# 包体放任意目录,符号链接进 profile 的 node_modules
ln -s /path/to/attach-plus ~/.dsh/profiles/web/node_modules/attach-plus
# ~/.dsh/profiles/web/cordis.patch.yml 追加:
# - insert:
# - id: attach-plus
# name: 'attach-plus'
# config: {}
Client (conversation.input.left 槽, replaceRisk: none)
├─ AttachPlus 组件:+ 按钮 / 菜单 / 三个隐藏 file input / toast
├─ 图片 → conversation.createDraftImages(files) → inputActions.addImages(ids)
├─ 文档/其他 → file.arrayBuffer() → base64 → fetch POST /api/dsh-attach-plus/upload
└─ 加载期注入 CSS:字形替换 + 按钮/菜单/toast 样式(主题变量)
Host (webServer 路由 /api/dsh-attach-plus/upload)
├─ 校验(size ≤ 20MiB、base64 长度、文件名清洗、loopback)
├─ sessions.get(id).header.cwd(兜底 sessionPersistence.list())→ 工作区
└─ shell.resolve({command:'mkdir -p uploads && base64 -d > …', workdir,
stdin:base64, sandboxPolicy}) → shell.run
仓库已满足商店一键安装的全部前置(详见 docs/STORE.md):
package.json 在仓库根,声明 dsh.bundle.patch + dsh.client(商店预检硬性条件);dsh-plugin(商店目录搜索)、dsh / deepseek-harness(已收录判定)、web-ui;lib/)直接入库,无构建步骤,pnpm add github:owner/repo 即装即用。node --check lib/index.js # Host 半语法检查
node --check lib/client.js # 浏览器半语法检查
设计文档见 docs/DESIGN.md(含网络调研案例)。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: web-ui。