dsh-at-file
FSMargoo/dsh-at-fileCodex 风格的 `@file` 文件引用,输入框里直接搜索并引用工作区文件。
DSH web 插件:给 bash/pwsh 命令与 read 的代码输出做分层语法染色(VS Code Dark+ 配色:关键字/字符串/数字/函数名/注释各一色);认得出来才染,表格/日志保持原样;纯前端渲染,零 token 开销。
DeepSeek Harness(DSH)web 插件:给 bash / pwsh 命令与 read 的代码输出做分层语法染色(VS Code Dark+ 风格:关键字/字符串/数字/函数名/注释各一色)。认得出来才染,表格/日志保持原样。
纯前端渲染,不新增、不改写任何会话内容,不调用模型 —— 零 token 开销。
.py .js .ts .json .ps1 .sh ...),PyCharm 式分词染色效果预览图(左:代码染色 / 右:表格原样):
| 键 | 类型 | 默认 | 说明 |
|---|---|---|---|
collapseByDefault | boolean | true | read / bash / pwsh 卡片默认折叠;设为 false 恢复全部展开。 |
入口:设置 → 插件配置 → 工具卡片折叠(开关即时生效,持久化到用户设置文档)。也可直接在 profile 的 cordis.yml / settings.yaml 写:
tool-highlight:
collapseByDefault: true
# 方式一:npm(推荐,即装即用)
dsh plugin --profile web add dsh-tool-highlight
# 方式二:GitHub 源
dsh plugin --profile web add github:vollegrewar/dsh-tool-highlight
# 方式三:本地 link(开发用)
dsh plugin --profile web add link:/path/to/dsh-tool-highlight
装完 重启 dsh web 并硬刷新(Ctrl+Shift+R)。
若用 GitHub 源安装遇到 pnpm 的
allowBuilds提示,按提示把dsh-tool-highlight加进 profile 的pnpm-workspace.yaml白名单即可;本插件无构建脚本,npm 安装不会触发。
本插件只接管 read / bash / pwsh 三个工具卡(priority -2),
dsh-better-tool-ui 继续负责 write/edit 的 diff、彩色状态条等其余工具——各管各的,互不冲突。
不装 better-tool-ui 也能单独使用。
tool.call.toolview 上,按工具名注册渲染器read 按文件扩展名;命令输出按内容启发式(JSON 可解析 → JSON;代码特征行 ≥2 → Code;否则纯文本)会增加 token 消耗吗? 不会。纯前端渲染:不改写会话内容、不调用模型,读取已有文本重新上色而已——和把 Word 字变颜色同理。
为什么表格/日志不上色? 认不出的内容硬染反而花眼(没人会给打印小票上色)。这是"认得出来才染"的设计,不是缺功能。
和 dsh-better-tool-ui 冲突吗? 不冲突。本插件只接管 read / bash / pwsh(priority -2),better-tool-ui 继续管其余工具。
npm test(无头运行分词器 + 语言识别,失败非零退出)