dshbase

插件目录 / Developer / dsh-git-remotes

dsh-git-remotes

未验证 yq04

✓ 持续维护

查看 GitHub ↗ ← 返回插件目录

2Stars
0Forks
0未关闭 issue
语言
2026-08-15最近推送
跨平台平台

功能简介

DSH web plugin: better-sidebar Git Remotes tab for fetch / ff-only pull / confirmed push

我们的评价
未验证 — 尚未实测

DSH web plugin: better-sidebar Git Remotes tab for fetch / ff-only pull / confirmed push 尚未验证——请自行安装测试。

「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

你是插件作者? 想拿到「已验证」标签——提交你自己的验证证据(截图、日志或短视频),我们审核通过后即改为「已验证」。

提交验证证据 ↗

README

dsh-git-remotes

English · 简体中文

DeepSeek Harness Web 插件:在 dsh-better-sidebar 里增加一个 Git 远程 Tab。

内置 Git Tab 负责暂存 / 提交 / 丢弃。本插件不替换它,只补它没有的远程动作:

  • 看当前分支、上游、ahead / behind、remote 列表
  • git fetch(全部或指定远程;默认 prune 失效跟踪分支)
  • git pull --ff-only(分叉则报错,不隐式 merge)
  • git push(面板二次确认;没有 force-push;没有模型工具自动推送)

安装

先装 better-sidebar,再装本插件(官方 web profile):

dsh plugin --profile web add dsh-better-sidebar
dsh plugin --profile web add git+https://github.com/yq04/dsh-git-remotes.git

没有 better-sidebar 时,host 路由仍会挂上,客户端 inject = ['betterSidebar'],Tab 不会出现。卸载:

dsh plugin --profile web remove dsh-git-remotes
dsh plugin --profile web --dump-config

需要系统 git。推送凭据走你本机已有的 credential helper / SSH agent,插件不存 token,错误信息会把 URL 里的 user:pass 打成 ***

行为边界

不做
fetch / ff-only pull / 确认后 push 暂存、提交、revert(用内置 Git Tab)
远程名校验后再拼进 argv shell 拼接、--force
POST + application/json + Host 信任围栏 给模型注册 push 工具
prune 清掉 [gone] 跟踪 ref 自动删本地分支

Push 必须 confirm: true。这是有意学 Claude Code 捆绑插件 commit-commands 的用法:/commit-push-pr发起;本插件把同一约束做成侧边栏按钮,而不是斜杠命令,也不调用 gh pr create。Fetch 默认 prune,对应他们的 /clean_gone 所依赖的「先 fetch --prune」。

开发

pnpm install
pnpm typecheck
pnpm test
pnpm build

dsh.bundle.patchcordis.patch.yml。发布前 pnpm build(npm prepare 会跑 tsdown)。

仓库已打 GitHub topics:dshdsh-plugindsh-better-sidebargit

许可

BSD-3-Clause(与官方 plugin-template 相同)。

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-git-remotes」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:yq04/dsh-git-remotes

Headless(CLI)profile:

dsh plugin --profile headless add github:yq04/dsh-git-remotes

实测报告

尚未 L3 验证——若已跑过,见下方失败备注。

状态:pending · 最近测试 2026-08-26 · 标记 webonly
备注:验证: web-only;待 L4 web CDP;L4 web CDP runtime-fail on dsh 0.1.0-rc.8. 浏览全部待验证失败 →
安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7789 个插件 →