OpenViking
volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:yangdongzhen590/dsh-knj-version-control
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
KNJ 家族插件:在 DSH Web 右侧栏提供 Version Control 工作台(Git Local Changes / Commit / Update / Push / 切换分支,全部走预览确认的安全流程)。通过公共 dsh-better-sidebar.registerTab() API 集成,不导入也不修改 Better Sidebar 私有 UI/状态/Git 代码。
peerDependencies: { "dsh-better-sidebar": ">=0.15.2" },并标记为 optional。
实测 registerTab(descriptor: TabDescriptor): () => void 的签名与 TabDescriptor 字段在 0.15.2 / 0.16.1 / 0.17.1 / 0.18.0 间完全一致(0.19.1 仅新增可选字段 description),本插件只使用 id / title / icon / order / single / badge / component。
peer 标 optional 意味着:宿主缺少 Better Sidebar 或版本更低时,安装不会被阻断,插件运行时会自检并在控制台告警后优雅退出(不影响其他插件)。dsh-better-sidebar 施加精确版本钉(不使用 overrides)。若你的 profile 需要统一某个 sidebar 版本,请在 profile 的 pnpm-workspace.yaml 里用 overrides 自行决定。From the DSH install checkout, add this local package through the DSH plugin/profile path (do not copy files directly into node_modules):
dsh plugin --profile web add D:\workspace\iobs_pro\plugins\dsh-knj-version-control
Restart or rebuild/reload the affected DSH Web artifacts as required by your installed DSH version, then refresh the existing GUI at http://127.0.0.1:3080.
package.json is UTF-8 without BOM. DSH reads profile and plugin metadata with bare JSON.parse; adding a BOM can prevent startup.
git on the DSH host PATH.The Version Control tab registers with an icon, a change-count badge on the sidebar tab, and a single instance policy (reopening focuses the existing tab). Inside the tab:
↑ahead ↓behind), refresh, and Update (fetch + fast-forward pull with preview).N change(s) state.git add on a conflicted path declares a resolution, and conflicts stay resolved outside the workbench.git commit --only over the checked files) so index state is never mistaken for commit content.execFile('git', fixedArgs).git switch; a dirty worktree is reported before confirmation and Git decides carry-on-conflict vs. rejection.git pull --ff-only directly on request with no confirmation dialog (still guarded by a fingerprint-bound preview token; Git refuses to overwrite uncommitted changes and any refusal is shown). When history has diverged, the update is labeled as a merge (git pull --no-rebase), requires explicit confirmation, warns that conflicts may result, and reports any conflicted paths for you to resolve externally — it never auto-resolves, auto-stashes, rebases, force-pushes, or retries.Toolbar actions show in-flight state: while a snapshot refresh, preview, confirm, stage, or update is running, the status line shows a spinner with a short message and the toolbar buttons disable (the active one spins). Row and selection staging actions disable for the same window, so only one Git write is ever in flight.
/stage endpoint directly rather than through a preview token: Git staging has no preview surface in this version (the preview kinds are commit/update/push/switch), the endpoint is same-origin- and workspace-root-guarded, and the operation only changes the reversible Git index. The confirmed operations remain fingerprint-protected. A rejected staging write is reported with its code and Git's own output.a.txt and b.txt both staged and further modified, git commit --only -- a.txt committed a.txt's worktree content, left b.txt's staged content staged and uncommitted, and index state never changed what the commit contained./stage (checked paths) → /preview → confirmation → /confirm. The staging write must precede the preview because staging changes the repository fingerprint, which would invalidate an already-issued preview token; the confirmation dialog reports whether the write will run.This first release is Git-only. The host workflow separates common status/diff/commit/update/history concepts from the Git-only staging capability, so a real SVN adapter can be added later without making staging a common requirement.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: file。