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 许可免费开源。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-better-sidebar-svn(ztyhehe/dsh-better-sidebar-svn)
仓库:https://github.com/ztyhehe/dsh-better-sidebar-svn
本站详情页:https://www.yhbd.top/plugins/ztyhehe-dsh-better-sidebar-svn/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-09-24 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 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 changelistdsh-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 →
Aisland-SJL/dsh-worktable
left0ver/dsh-file-review
yoli-mi/dsh-client-ui-custom
Fengze233/dsh-vscode
chouxiaohuai/dsh-uiskin-theme
meyaomiao/dsh-server-deck