ztyhehe/dsh-better-sidebar-svn

DSH 插件:为 dsh-better-sidebar 添加 SVN 源代码管理标签页——支持状态/差异/日志/提交/更新/回滚/冲突解决,与内置 Git 面板对称,基于纯 svn CLI(--xml 输出)驱动,通过 git 直接安装,免构建。

Project Overview项目介绍

This is a native DSH plugin that adds a full-featured SVN source control panel to the DSH-better-sidebar extension. To install it, you first need to have DSH-better-sidebar version 0.12.0 or higher installed as a required peer dependency. After that, you can run the install commands from your DSH config directory to pull the plugin directly from its Git repository. The built assets are already included in the repository, so you don’t need a local build toolchain to compile it after cloning. Once installed, just hard refresh your browser with Ctrl+Shift+R to see the new SVN tab in your DSH sidebar.

After installation, developers can access all core SVN workflows directly from the DSH sidebar without switching to external terminal tools. You can view split staged and unstaged changes, click files to see diffs, search and filter diff content, stage changes for commit, and run common actions like update, revert, add, and conflict resolution with one click. It is designed for developers who already use DSH for their daily work and need to manage SVN repositories within the same interface. The UI and interaction logic match the built-in Git panel for DSH-better-sidebar, so users familiar with that panel will feel right at home immediately.

This plugin requires two key dependencies to work correctly: a compatible DSH-better-sidebar installation, and a local SVN command line tool of version 1.7 or higher on your system. It includes built-in error handling for missing SVN, showing a friendly prompt instead of a blank broken screen if SVN is not detected. All SVN operations are driven directly by your local SVN binary, so there are no extra runtime dependencies beyond what you already have installed on your system. The project is open source under the permissive MIT license, so you can use, modify, and distribute it freely with no restrictions.

这是专为 DeepSeek Harness (DSH) 开发的原生插件,为 DSH-better-sidebar 侧边栏拓展了完整的 SVN 源代码管理功能面板。它提供状态面板、文件差异查看、暂存提交、一键更新、冲突解决、提交历史查看等核心能力,交互逻辑与 DSH-better-sidebar 内置的 Git 面板保持高度一致。

用户安装后可在 DSH 侧边栏获得专属 SVN 标签页,日常开发中可直接在面板内查看文件变更、搜索过滤差异、暂存要提交的变更,一键执行更新、提交、还原等操作。适合需要在 DSH 工作流中管理 SVN 仓库的开发者,无需切换外部工具即可完成大部分日常 SVN 开发操作。

该插件依赖已安装版本不低于 0.12.0 的 DSH-better-sidebar,同时要求系统本地已安装 1.7+ 版本的 SVN 命令行工具。可通过 DSH 插件命令直接从 Git 仓库拉取安装,无需本地构建,安装后硬刷新浏览器即可使用,代码采用 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 github:ztyhehe/dsh-better-sidebar-svn

把 ztyhehe/dsh-better-sidebar-svn 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-better-sidebar-svn

为 DSH-better-sidebar 添加 SVN(Subversion)源代码管理面板的插件。

✨ 功能

  • 📊 状态面板:变更分「已暂存 / 未暂存」两段显示(修改/添加/删除/冲突/未版本控制等)
  • 🔍 文件 Diff:点击文件查看差异对比;diff 页签与内置 diff 页签对齐(标题「文件变动」、同款 changes 图标),标题栏支持关键词搜索(命中行高亮、n/m 计数、Enter / Shift+Enter 上下跳转、可选折叠无命中 hunk)与路径过滤(按文件路径子串过滤,纯前端、不新增网络请求)
  • ✅ 暂存式提交:与内置 Git 面板逻辑一致——行尾 +/− 按钮把文件加入/移出「待提交」列表(SVN changelist dsh-commit,纯本地元数据),提交只提交已暂存的文件;支持全部暂存/全部取消、Ctrl+Enter 提交;未版本控制文件暂存时自动先 svn add
  • 🔄 更新:一键 svn update 同步远端
  • ↩️ 还原:还原单个文件修改
  • ➕ 添加:将未版本控制文件添加到版本控制
  • 🙈 忽略规则:标题栏「忽略规则」弹窗读写当前目录 svn:ignore(换行分隔模式),非空规则经临时文件 propset -F 写入、清空走 propdel;规则仅作用于当前目录、不递归,保存后自动刷新状态区
  • 📜 历史:查看提交历史(分页加载),含变更文件列表
  • 🔧 冲突解决:对冲突文件提供快速解决按钮
  • 🛡️ 降级与容错:系统缺失 svn 时面板显示友好提示(svn-missing)而非空白报错;SvnView / SvnDiffTab 均有 React ErrorBoundary,渲染异常显示可读占位而非整面板白屏

📦 安装

前置:已安装 DSH-better-sidebar(≥ 0.21.1,对应 DSH ≥ 0.1.7-rc.1;本插件的必需 peer)。

cd ~/.dsh && dsh plugin --profile web add dsh-better-sidebar && dsh plugin --profile web add git+https://github.com/ztyhehe/dsh-better-sidebar-svn.git

构建产物(lib/)已随仓库提交,git 直装无需本地构建工具链。安装后硬刷新浏览器(Cmd/Ctrl+Shift+R)即可看到侧边栏中出现「SVN」标签页。

卸载

cd ~/.dsh && dsh plugin --profile web remove dsh-better-sidebar-svn

⚙️ 前置条件

  • 已安装 DSH-better-sidebar (≥ 0.21.1,DSH ≥ 0.1.7-rc.1)
  • 系统已安装 svn 命令行工具(1.7+)

🏗️ 架构

dsh-better-sidebar-svn/
├── src/
│   ├── index.ts              # Host 半:注册 /sidebar/api/svn.* 路由
│   ├── svn.ts                # SVN CLI 操作(svn status/diff/log/commit...)
│   ├── wire.ts               # HTTP 辅助函数(JSON 响应格式)
│   ├── types.ts              # 共享类型定义
│   └── client/
│       ├── index.tsx          # Client 半:注册 SVN Tab 到 better-sidebar
│       ├── SvnView.tsx        # SVN 面板 React 组件(v0.2.0 增 ignore 弹窗)
│       ├── SvnDiffTab.tsx     # diff 标签页(v0.2.0 增搜索 / 过滤)
│       ├── ErrorBoundary.tsx  # 渲染错误边界
│       ├── diff.ts            # 统一 diff 解析纯函数(可测)
│       ├── api.ts             # 类型化 API 封装
│       └── svn.css            # 面板样式
├── tests/                     # Node 内置 test runner 单测
├── package.json
└── tsconfig.json

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-orchestrator 下一个 Next dsh-a2a-agent →