onchainyaotoshi/dsh-plugins--packages-file-explorer ↗★ 0
dsh-file-explorer
File explorer panel for the DeepSeek Harness Web UI: browse the active workspace tree and view file contents.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:onchainyaotoshi/dsh-plugins#408d5f030a38e535f77d26cccaac3d2215ee2e3f&path:packages/file-explorer说明文档
阅读完整 README ↗dsh-plugins
Monorepo plugin DeepSeek Harness — kumpulan plugin DSH buatan komunitas. Satu repo, banyak paket npm (opsi B — lihat ADR topologi).
Daftar plugin
| Paket | Deskripsi |
|---|---|
dsh-file-explorer | Panel tree file + viewer source code workspace aktif di Web UI |
Cara develop
pnpm install
pnpm build # build semua paket (host half + client bundle)
pnpm watch # watch client bundle (untuk iterasi UI)
Cara test di VPS
cd dsh-plugins && pnpm build
dsh plugin --profile web add ./packages/file-explorer
dsh --profile web --dump-config | grep file-explorer # layer harus muncul
sudo systemctl restart dsh # SEKALI, di jeda antar turn!
Verifikasi HTTP:
curl -sS -o /dev/null -w '%{http_code}\n' http://127.0.0.1:3080/plugins/dsh-file-explorer/client.js # 200
curl -sS 'http://127.0.0.1:3080/plugins/dsh-file-explorer/api/workspaces' # JSON daftar workspace
Iterasi UI berikutnya TANPA restart: pnpm watch + refresh browser
(bundle di-serve no-cache; di produksi row HMR di-omit).
Publish
pnpm --filter dsh-file-explorer publish --access public
User lain tinggal: dsh plugin --profile web add dsh-file-explorer + restart dsh.
Keamanan
Route API plugin ini tidak ikut pagar /api (method PRIVILEGED), jadi
satu-satunya pagar browser→filesystem adalah containment workspace di host
half (ctx.fs.contains). Jangan pernah melemahkan boundary ini di plugin
berikutnya, dan pastikan UI yang meng-ekspos route ini tetap di balik
autentikasi deployment (mis. Cloudflare Access).