Skip to content
dsh.fish
Bundle

@deepseek-ai/dsh-client-ui-code-diffs

Replace edit/write tool cards with inline full-line colored code diffs (green add / red delete), shown right after each modification.

Source
linhoulong123
License
MIT
Updated
Updated 15 days ago

Readme

# dsh-client-ui-code-diffs

**增强 diff 卡片**:替换 DeepSeek Harness 对话中 `edit` / `write` 工具卡片为**整行红绿背景**的内联 diff 视图,每次文件修改完成后就地显示在消息流中。

![效果](https://img.shields.io/badge/dsh-plugin-58a6ff) ![License](https://img.shields.io/badge/license-MIT-blue.svg)

## 功能

- **整行红绿 diff**:新增行绿色背景、删除行红色背景(跟随主题色变量)
- **字符级高亮**:同一行内的变化片段高亮标记
- **语法着色**:Kotlin / Java / TypeScript / JavaScript / Python / JSON / XML / CSS 关键词与字符串着色
- **行号与统计**:行号、+/- 行数统计(头部徽章)
- **状态标签**:执行中 / 失败 / 打开文件
- **大 diff 截断**:超过 600 行自动省略中间内容
- **优先级遮蔽**:以更低优先级注册,自动替换内置 edit/write 卡片

## 安装

```sh
dsh plugin --profile web add <npm-or-github-spec>
```

安装后重启 `dsh web` 生效。纯客户端插件,无服务端逻辑。

## 使用

对话中模型执行 `edit` / `write` 工具后,消息流中的工具卡片自动以整行红绿 diff 显示(新增/修改/删除一目了然)。

## 兼容性

- DeepSeek Harness `0.1.0-rc.6`
- Node >= 20
- 依赖:react(运行时由宿主提供)

## License

MIT

Install

dsh plugin --profile web add github:linhoulong123/dsh-client-ui-code-diffs

Profile: web

  • This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.
Source