deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:laoshi1991/dsh-shortcuts
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
为 DeepSeek Harness(dsh)Web 界面的输入框提供「快捷短语 / 快捷标签」功能:在输入卡片工具行的左侧显示一排彩虹色键盘键帽样式的短语标签。
×,点击删除该短语+ → 行内小输入框;Enter 提交、Esc 取消、失焦时有内容则提交、失焦为空则取消localStorage(键 dsh:quick-phrases),跨会话、跨标签页共享Continue / Still there?);一旦你增删过短语,以保存的列表为准(删空也保持为空)quickPhrases 词表命名空间)# 1a. 直接从 GitHub 安装(dsh plugin 直接转发给 profile 目录下的 pnpm,支持任意 pnpm 依赖规格)
dsh plugin --profile web add github:laoshi1991/dsh-shortcuts
# 1b. 或克隆后本地安装(在本插件源码目录执行)
# git clone https://github.com/laoshi1991/dsh-shortcuts && cd dsh-shortcuts
# dsh plugin --profile web add "file:$(pwd)"
# 2. 在 ~/.dsh/profiles/web/cordis.patch.yml 追加启用项:
# - insert:
# - id: dsh-shortcuts
# name: 'dsh-shortcuts'
# 3. 重启 dsh web 生效
修改 client.js 后重新安装一次即可(file: 依赖是拷贝安装,不会自动跟随源码):
dsh plugin --profile web update dsh-shortcuts # 或重新 add,然后重启 dsh web
卸载:删除 cordis.patch.yml 中的 insert 项(可选:dsh plugin --profile web remove dsh-shortcuts),重启即可恢复原状。
@deepseek-ai/dsh 0.1.0-rc.6 上开发并验证。依赖 web 外壳的 client 插件加载机制与 conversation.input.left 插槽;rc 系列版本间接口可能变动,跨版本使用请以实际验证为准。client.js 即浏览器侧产物,安装后即可用。node test/smoke.mjs # 冒烟测试:自动从全局 dsh 安装解析 react;也可设 DSH_ROOT 指向 @deepseek-ai/dsh 包目录
scripts/restart-web.sh:等待旧 dsh web 退出后原位重启的开发脚本,可用 DSH_BIN / DSH_WEB_CWD / DSH_WEB_PORT 环境变量覆盖(默认:PATH 上的 dsh、$HOME、3080)。client.js,即构建产物本身,无需构建)向外壳模块加载器注册一个模块:ctx.locale.register("quickPhrases", …) 注册词表;ctx.slots.inject("conversation.input.left", …) 在 ui-conversation 声明的输入工具行插槽上注册列表条目(id: quick-phrases,order: 100);inputActions.setDraft()(输入状态机唯一公开草稿写入路径)与 t 词表座位,不触碰任何私有接口;data-plugin-css 的 <style> 标签注入,色彩用固定 rgba、背景/边框用 --dsw-* 设计令牌,适配深浅主题。lib/index.js)为无操作插件,仅满足加载器每个条目一个入口的约定。package.json 的 dsh.client 声明(platform: web、immediately: true)让宿主在启动图中发现并在启动时拉取浏览器半包。CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。