dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Dinosaur-MC/dsh-win-multi-bash
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
A Windows multi-bash plugin for DeepSeek Harness. git_bash (Git for Windows / MSYS) is on by default. wsl_bash (WSL), msys2_bash (MSYS2 UCRT64), ssh_shell (pooled SSH channels, key-only, many hosts) and ssh_scp (SFTP transfer on the same row) are opt-in. terminal keeps a real PTY session between calls.
Every dialect owns its own executor, and no tool registers ctx.shell: that seat stays with the base bundle pwsh, so pwsh behaves exactly as it does without this plugin.
| Tool | Backend | Notes |
|---|---|---|
git_bash |
Git for Windows (MSYS) | On by default; owns a GitBashExecutor |
wsl_bash |
WSL Linux | Opt-in; owns a WslBashExecutor; its first load probes the distro |
msys2_bash |
MSYS2 UCRT64 | Opt-in; owns a Msys2BashExecutor; MSYS2's own $MSYSTEM and pacman |
ssh_shell |
Remote (SSH) | Opt-in; owns a SshShellExecutor; one pooled connection per host, one channel per call |
ssh_scp |
Remote (SSH) | Opt-in with ssh_shell; SFTP transfer on the same pool; foreground only |
ssh_hosts |
Remote (SSH) | Opt-in with ssh_shell; read-only host inventory, no connection |
terminal |
git_bash / wsl_bash / msys2_bash |
Local PTY sessions: open / send / read / signal / close / list |
pwsh |
dsh's own | Untouched; served by the base bundle's pwsh-sandbox row |
Only git_bash and terminal ship on. git_bash often runs unconfined — see Sandbox behavior.
0.1.7-rc.2 through 0.2.x (the engines.dsh window).@deepseek-ai base packages.ssh_shell / ssh_scp: the ssh2 transport (an optional peer — see The SSH transport) and a host registry under sshShell.hosts.^22.19.0 || >=24.0.0 (the range this package declares), and pnpm for installation.Install through dsh plugin (pnpm): it applies this package bundle cordis.patch.yml, which inserts the rows.
dsh plugin --profile web add dsh-win-multi-bash # npm package (recommended)
dsh plugin --profile web add github:@Dinosaur-MC/dsh-win-multi-bash # GitHub source
dsh plugin --profile web remove dsh-win-multi-bash # remove
The bundle layer is assembled at boot, so restart dsh web for a change to take effect. Do not also hand-write the same rows into the profile patch: the loader rejects duplicate entry ids.
ssh2)ssh2 is an optional peer dependency: installing this plugin neither installs nor builds it, and every row still loads; the transport is resolved on first use, and without it the SSH calls fail closed with ssh2 is not installed for this deployment. Add it to the same profile:
dsh plugin --profile web add ssh2
A hard dependency would instead make pnpm refuse the whole install with ERR_PNPM_IGNORED_BUILDS naming ssh2 and cpu-features. Approve the pending allowBuilds entries when pnpm asks: the blocked script only builds the optional accelerator. See Configuration.
git_bash is ready after install: a fresh MSYS bash per call; workdir accepts native, MSYS (/c/...) and WSL automount (/mnt/c/...) forms.wsl_bash / msys2_bash: enable win-mb-tool-wsl / win-mb-tool-msys2 on the Plugins page. Pin wslBash.wslDistro or msys2Bash.bashPath only when discovery is not enough.ssh_shell: enable win-mb-tool-ssh and add hosts under sshShell.hosts (alias, host, user, keyPath; optional port, startupCommand, default). A call names an alias, or omits it for the one default. Key-only auth, strict host keys; hosts default to approval: session (trusted never asks) and live in the row host table — see Configuration.ssh_scp: transfers on the same row — action, localPath (inside the workspace unless danger-full-access), remotePath (POSIX, Windows drive or UNC), recursive, timeoutMs (default 5 min). Foreground only; results are values with sandbox facts, and failures name the phase and alias.ssh_hosts: read-only inventory — query, approval, defaultOnly; sanitized facts, never credentials; no connection, no approval.terminal: open, send with submit: true, read, then close. The working directory, exported variables and aliases survive between calls. Sessions are process-local, capped, idle-reclaimed and not jobs.denied: false; a denial-dialect failure says denied: true; one matching nothing carries no denied; an unwrapped run says unconfined: true; a remote SSH run reports sandbox: { mode, remote: true }.ssh_scp uses the generic row. See Conversation rows.ssh_shell reuses a pooled ssh2 client and gives every call its own exec channel — isolated, parallel-safe, cancellable; ssh_scp transfers share that pool.tool:win-mb-bash section whose text follows the mounted tools; knobs are .volatile() where they can be live, and a save is revision-fenced.| Document | What it covers |
|---|---|
| Architecture | Rows, executors, the registry, the SSH pool and transfers, the client half |
| Design principles | The rules the implementation is held to: honest facts, derived surfaces, parity, live vs schema knobs |
| Sandbox behavior | Per-backend capabilities, Windows caveats, bwrap, self-heal, SSH's remote scope |
| Terminal sessions | PTY lifecycle, signals, limits, measured defaults |
| Conversation rows | How a call becomes the platform shell card |
| Configuration | The Plugins page, the SSH hosts and transfers, live semantics, staged saves |
| Verification | Dev runtime, both test entries, the live SSH round trip |
| Troubleshooting | Symptom → fix |
The detailed documents are in English; this README is the bilingual entry point.
npm ci # once: the pinned 0.2.1-rc.2 dev runtime
pnpm test # boot a composition; run real commands; a verdict
pnpm run test:audit # the full audit suite
DSH_AUDIT_SSH_HOST=me node smoke/prepare.mjs audit # optional live SSH
Both entries are development tools: the published tarball ships no smoke/. pnpm test fails on a missing tool, a wrong description, a lost ctx.shell seat or a failed command; the audit counts its skips.
dsh-win-multi-bash/
├── package.json # dsh.bundle + dsh.client + engines.dsh; per-tool exports
├── cordis.patch.yml # the composition wiring (documented inline)
├── lib/ # plain ESM implementation (no build step)
├── smoke/ # development verification (not published)
├── docs/ # the documents listed above
└── LICENSE / THIRD_PARTY_NOTICES
docs/ and smoke/ are repository-only; npm pack ships only the files list.
MIT. See LICENSE; upstream notices are in THIRD_PARTY_NOTICES.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。