arcmosin/dsh-wordbox 预览 preview

arcmosin/dsh-wordbox

DSH Web GUI常用词箱子,方便项目常用词的存储和粘贴

Project Overview项目介绍

This is a native client plugin built exclusively for the web version of DeepSeek Harness (dsh web). It adds a dedicated button labeled "Word" (or "W" in the English interface) to the right side of the conversation input box. When clicked, the button opens a persistent sliding-up panel that allows users to store and manage their frequently used words, phrases and sentences. Users can insert any stored entry into the input box with a single click, and entries are organized into two separate groups: global entries shared across all workspaces, and project-specific entries isolated by workspace directory.

After installation, you just need to restart dsh web for the plugin to take effect, and the new button will appear immediately next to the input box. To use the plugin, click the button to open the panel, then switch the display filter at the bottom right of the panel to show all entries, only global, or only project-specific entries. Click any entry to append it to the input box, and you can click multiple entries in sequence for continuous insertion. You can also delete existing entries, or convert a project entry to a global entry with one click. This plugin is designed for dsh web users who often input repeated fixed phrases or common prompts.

To install this plugin, you need to have the official DeepSeek Harness CLI and the pnpm package manager already configured on your system. It supports three installation methods: installing from npm, installing directly from the GitHub repository, or linking a local development copy, and both installation and uninstallation can be done with a single dsh plugin command. The plugin stores all word data in the browser's localStorage, so uninstalling the plugin does not automatically delete saved word data, and you need to manually clear the relevant storage keys if you want to remove them. It is released under the open source MIT license, requires no build step, and supports hot reloading for code changes.

这是一款为 DeepSeek Harness 的 dsh web 网页端客户端开发的原生插件,它会在对话输入框的右侧添加一个「词」按钮,点击按钮会呼出一个常驻的上拉面板,供用户管理个人常用的词语和句子,并且支持一键插入到对话输入框中。词条分为两个作用域:所有工作区共享的全局词条,和按工作区目录隔离的当前项目专属词条。

用户安装完成后重启 dsh web 就能看到输入框右侧的按钮,点击打开面板后,可以在面板底部右侧切换显示范围,选择查看全部、仅全局或仅当前项目的词条。点击任意词条就能将它追加到输入框中,支持连续插入多个词条,还支持删除已有词条、将项目词条转为全局词条等操作。这款插件适合经常需要重复输入固定短语、常用话术的 DSH web 用户使用。

安装该插件需要先配置好 DeepSeek Harness 官方 CLI 和 pnpm 包管理器,支持通过 npm、GitHub 或本地开发链接三种方式安装,安装卸载都只需要一条命令。插件的词库存储在浏览器的 localStorage 中,卸载插件不会自动删除已保存的词库数据,需要手动清理对应存储键。本插件采用 MIT 开源许可证,无构建步骤,修改代码后支持热重载。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-wordbox

把 arcmosin/dsh-wordbox 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

常用词盒子(Common Word Box)— DeepSeek Harness 客户端插件

English | 中文

License: MIT

DeepSeek Harness(dsh web)的 Web 客户端插件:在对话输入框右侧放一个「词」按钮,点击弹出一个常驻的上拉面板,管理自己的常用词/句,一键插入对话输入框。 dsh-wordbox

词条分两个桶:全局(所有工作区共享)与当前项目(按工作区目录隔离)。

功能

  • 🖱️ 点击「词」按钮 → 上拉面板(带滑入动画),常驻不消失(再点一次 / 点击外部 / Esc 关闭)
  • 🔀 三档显示范围:全部 / 全局 / 当前(切换控件在「+ 添加」同行最右侧)
  • ⏎ 点击词条 → 追加进输入框(保留焦点、一个撤销步、面板不关闭,可连续插入)
  • 🌐 中/英双语(跟随 DSH 界面语言)

安装

前置:DeepSeek Harness dsh web + pnpm(dsh plugin 命令会转发给 pnpm,需要它在 PATH 上)。

本插件是标准的 DSH bundle 插件(dsh.bundle.patch 声明,包内自带插件行 patch),因此安装/卸载都是一条命令:

安装

# 前提,安装官方 CLI(已装可跳过)
npm install -g @deepseek-ai/dsh

# 安装本插件
# 方式一:从 npm 安装(推荐,已发布到 npm)
dsh plugin --profile web add dsh-wordbox

# 方式二:从 GitHub 安装(仓库根即插件包,无构建步骤,直接可用)
dsh plugin --profile web add github:arcmosin/dsh-wordbox

# 方式三:本地开发(link 到本仓库)
dsh plugin --profile web add link:D:/path/to/dsh-wordbox

装完重启 dsh web 即生效(输入框右侧出现「词」按钮)。

dsh plugin add 会把包安装进 profile,并因 dsh.bundle 声明自动挂载到 dsh.profile.bundles;无需手动编辑任何 patch 文件。

卸载

dsh plugin --profile web remove dsh-wordbox

然后重启 dsh web,按钮即消失。浏览器里保存的词库数据(localStorage)不会随卸载删除,如需清空可自行删除以下键:dsh.common-word-box.words.v1、dsh.common-word-box.words.project.v1、dsh.common-word-box.mode.v1。

个别情况下 remove 后 profiles\web\node_modules\dsh-wordbox 会残留空目录/链接,手动删除即可,不影响任何功能。

使用

  1. 点击输入框右侧的「词」按钮(英文界面显示 W),面板上拉并保持打开;
  2. 底部右侧切换 全部 / 全局 / 当前;
  3. 点击词条 → 追加进输入框(可连续点多条);悬停行尾出现 × 删除;
  4. 「当前」模式下悬停行尾出现"添加到全局"转化按钮,一键复制进全局;
  5. 长词悬停会慢速流动显示完整内容。

存储

数据 localStorage 键
全局词 dsh.common-word-box.words.v1(string[])
项目词 dsh.common-word-box.words.project.v1({规范化目录: string[]},空桶自动清理)
显示模式 dsh.common-word-box.mode.v1(all / global / current)

词库存浏览器本地(按浏览器 profile 隔离),跨工作区、跨标签页通过 storage 事件同步。

开发

  • 本地调试安装:dsh plugin --profile web add link:<本仓库绝对路径>,改代码无需重装;
  • 修改 lib/client.js 后无需重启:宿主 client-hmr 每 500ms 轮询 bundle 哈希,变化自动热重载(React 状态会重置);首次安装/卸载或改 cordis.patch.yml 后需重启 dsh web。
  • bundle 是 window.__ModuleLoader__.load({ id, factory }) 格式的纯 JS,无构建步骤,改完直接生效。
  • 长词流动速度常量:lib/client.js 中的 FLOW_SPEED(默认 60 px/s)。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-zen-proxy 下一个 Next dsh-scope →