zuoguyoupan2023/adhdgofly-dsh-ext 预览 preview

zuoguyoupan2023/adhdgofly-dsh-ext

Plugin插件 Native原生 ⭐ 6 MIT Docs & Writing文档与写作

ADHDGoFly POS高亮插件,适用于DeepSeek Harness Web:在渲染的Markdown中,名词显示为绿色,动词显示为红色,形容词/副词显示为紫色,其他词性显示为灰色。

Project Overview项目介绍

adhdgofly-dsh-ext is a purpose-built plugin for the DeepSeek Harness (DSH) web interface, porting the mature part-of-speech highlighting functionality from the existing ADHDGoFly ecosystem. It applies consistent color coding to text based on part of speech in all rendered Markdown content areas, including chat messages and deliverables, with nouns colored green, verbs red, adjectives and adverbs purple, and all other words gray. The plugin works entirely as client-side post-processing of the DOM, so it does not require modifying DSH’s core source code, and all tokenization logic and compressed dictionaries are pulled from the existing open-source ADHDGoFly project. It also supports both deep and light DSH themes, on-off toggling for part-of-speech filtering, and debounce handling for streaming output.

This plugin is designed for DSH users who want visual part-of-speech highlighting to assist with reading, especially users with ADHD who benefit from visual differentiation of word types to improve text comprehension. After installation, the plugin automatically detects DSH theme changes and updates its color scheme to match, eliminating the need for manual user adjustments. When users receive streaming output from the LLM, the plugin waits until streaming is complete before applying highlighting, which avoids unnecessary performance slowdowns during the streaming process. It also exposes an attribute contract that lets other DSH plugins like openharness-reader integrate with its highlighting system seamlessly.

The plugin is released under the open-source MIT license, and its dictionary data is sourced from Princeton WordNet for English and the jieba Chinese word segmentation library, both following their respective open-source licenses. There are a few known limitations to the current version: highlighting may briefly reset during React re-renders, it does not add highlighting to code editors or arbitrary web pages, and remote browser sessions only store settings in local storage, so settings do not sync across different browsers. Users can install it either through the one-click installation option in the openharness desktop app plugin center, or via a simple command line entry for manual setups.

adhdgofly-dsh-ext 是专为 DeepSeek Harness(DSH)Web 界面开发的插件,它将 ADHDGoFly 生态的词性高亮功能移植到了 DSH 中。插件会在已渲染的 Markdown 内容区(包括对话消息、Deliverables 等区域)按词性给文字上色:名词染绿、动词染红、形容词和副词染紫、其他词染灰,同时支持深浅主题适配、词性筛选开关、流式输出防抖和代码块豁免。它是纯客户端 DOM 后处理插件,不需要修改 DSH 源码,分词引擎和压缩词典都来自 ADHDGoFly 生态。

这个插件面向需要通过词性高亮辅助阅读的 DSH 用户,尤其是有 ADHD 阅读障碍、希望通过视觉区分词性来提升文本理解效率的用户。安装完成后,插件会自动适配 DSH 的主题切换,当用户开启流式输出对话时,插件会在内容渲染完成后自动进行分词高亮,不会在流式输出过程中额外增加渲染负担。同时插件预留了属性契约,其他插件如 openharness-reader 可以直接接入该高亮机制实现联动。

本插件采用 MIT 许可证开源,词典数据分别来自 Princeton WordNet 和 jieba 分词词库,遵循对应开源协议。目前已知限制包括:React 重渲染时高亮可能短暂重置,不覆盖代码编辑器和任意网页,远程浏览器使用时设置仅保存在 localStorage 无法跨浏览器同步。安装方式支持 DSH 桌面 App 插件中心一键安装,也支持命令行安装、本地开发安装和升级卸载。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
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命令行安装

npx @deepseek-ai/dsh plugin --profile web add adhdgofly-dsh-ext

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

READMEREADME

adhdgofly-dsh-ext

把 adhdgofly-ide-ext 的词性高亮机制搬进 DeepSeek Harness(DSH)Web 界面:在已渲染的 Markdown 内容区(对话消息、Deliverables 等)把名词染绿、动词染红、形容词/副词染紫、其他染灰,支持深/浅双色板、词性筛选即时开关、流式输出防抖与代码块豁免。

本插件是纯客户端 DOM 后处理插件(dsh.client 双面包),不改 DSH 源码;分词引擎与压缩词典来自 ADHDGoFly 生态(MIT),经 npx @deepseek-ai/dsh plugin --profile web add 一条命令安装。


功能

  • 词性高亮:英文(含后缀词形还原)+ 中文(正向最大匹配),名词绿 / 动词红 / 形副紫 / 其他灰。
  • 深/浅色板:跟随 DSH 主题(theme 服务),颜色与 adhdgofly-ide-ext 一致。
  • 词性筛选:即时生效——文字保留、颜色移除(CSS 覆盖,无需重新分词)。
  • 高亮样式:color(文字变色,默认)/ highlight(背景框 + 边框)。
  • 流式兼容:[data-streaming] 消息流完前跳过,settle 后自动高亮;MutationObserver + 防抖 + 重入锁。
  • 代码块豁免:pre/code、.markdown-code-block、按钮/输入框/装饰区不参与高亮。
  • 属性契约(v0.1.2):任何带 data-adhdgofly-highlight 属性的元素自动被高亮(无需写入 containers 配置、无需重新加载)——openharness-reader 的 Markdown 预览即用此契约接入;其他插件可照此联动。未带该属性的页面不受影响。
  • 设置页(v0.1.3 双模式):配置面有两个并存入口——① Settings → ADHDGoFly 左侧分区(保留原位,老习惯不变);② Settings → 插件 → **「插件配置」**标签页里的 ADHDGoFly 卡片(rc.7 官方插件设置机制)。两者绑定同一个 adhdgofly settings 命名空间(宿主侧 schema 持久化,loopback 下改任一处另一处自动同步);远程浏览器自动回退 localStorage。可在设置里用「设置入口 / Settings entry」选择只留一种(both/classic/plugin-card,刷新生效)。

安装

前置:本机已安装 DeepSeek Harness(DSH),且已初始化 web profile(npx @deepseek-ai/dsh web 跑过一次即可)。当前版本 0.1.5。

方式一:App 插件中心(推荐,无需命令行)

  1. 下载并安装 openharness 桌面 App:
  2. 打开 App,在左侧边栏进入「插件中心」;
  3. 在「特别推荐」里找到 adhdgofly-dsh-ext;
  4. 点击「安装」,等待安装完成——DSH 会自动重启并应用,无需手动操作;
  5. 重启后即可在 Web 设置里看到配置入口(见 §配置)。

方式二:命令行安装

# 1) 安装 DSH(首次)
npx @deepseek-ai/dsh web

# 2) 安装插件
npx @deepseek-ai/dsh plugin --profile web add adhdgofly-dsh-ext

#    若 pnpm ≥ 10 报 ERR_PNPM_ADDING_TO_ROOT,命令末尾加 -w:
npx @deepseek-ai/dsh plugin --profile web add -w adhdgofly-dsh-ext

⚠️ 命令行安装后必须重启 DSH 才生效

  1. 在正在运行的 DSH Web 终端按 Ctrl+C 停止当前进程;
  2. 重新启动:npx @deepseek-ai/dsh web (若机器已把 dsh 装进 PATH,dsh web / dsh --profile web 与之等价,任选其一)
  3. 等 Web 界面重新打开后刷新浏览器页面。

不重启的话,正在运行的 DSH 进程的 boot 图里没有本插件,刷新页面也不会加载它。

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-xray 下一个 Next dsh-file-claim →