onchainyaotoshi/dsh-plugins--packages-dsh-git-state0

dsh-git-state

Git state strip for the DeepSeek Harness Web UI: branch, ahead/behind, uncommitted changes, stashes, worktrees, and open PRs for every registered workspace.

包名
dsh-git-state
版本
0.1.0
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:onchainyaotoshi/dsh-plugins#7d40617985107fe5f6ac7ab877820ac014a72030&path:packages/dsh-git-state

dsh-git-state

Plugin DeepSeek Harness untuk Web UI: strip status git satu baris di atas composer — branch, ahead/behind, perubahan uncommitted, stash, worktree, dan PR open — untuk setiap workspace terdaftar. Klik strip untuk melihat detail.

Fitur

  • Strip ringkas (slot conversation.input.dock, baris paling atas) — chip bernilai nol disembunyikan; bersih ditandai "bersih"; bukan repo git ditandai redup.
  • Deteksi worktree aktif: strip menampilkan branch/ahead-behind/perubahan dari checkout yang sedang dikerjakan (riwayat workdir bash sesi tab itu + proses hidup), bukan checkout utama. Multi-tab dengan worktree berbeda aman — tiap tab menghitung sendiri dari sesinya.
  • Panel detail: file berubah (kode XY porcelain), daftar stash, daftar worktree dengan tag utama / aktif / dipakai (proses hidup) / dikerjakan sesi lain + jumlah perubahan tiap worktree, daftar PR open (link ke GitHub).
  • Auto-select workspace mengikuti sesi aktif (cwd canonical); override manual lewat tab workspace bertahan sampai sesi berganti.
  • Auto-refresh 30 detik + tombol refresh manual.
  • Semua perintah git read-only, dibatasi ke workspace terdaftar.

Instalasi

dsh plugin --profile web add dsh-git-state

lalu restart dsh sekali. Instalasi lokal dari checkout monorepo (sebelum publish): dsh plugin --profile web add ./packages/dsh-git-state.

Keamanan

Host half hanya menjalankan perintah read-only (status --porcelain, rev-parse, stash list, worktree list, gh pr list) dengan `git -C

— path selalu dariworkspaceRegistry, client hanya mengirim id workspace. Route ini tidak ikut pagar /api` (method PRIVILEGED), jadi pastikan UI ini tetap di balik autentikasi deployment (mis. Cloudflare Access).

Keterbatasan

  • PR open butuh gh CLI terautentikasi di host; tanpa itu chip PR disembunyikan (graceful).
  • Strip scope sesi — tidak muncul di layar hero (tanpa sesi aktif).
  • Worktree non-utama dicek status & sync-nya (cap 20); daftar file di-cap 200.
  • Deteksi "aktif" mengandalkan riwayat bash sesi DSH; kerja lewat terminal eksternal (ssh) hanya terlihat lewat proses hidup (tag dipakai).