说明
以下为插件作者提供的原文。
dsh-wsl-registry
从 WSL 只读访问 Windows 注册表,限定在白名单键前缀内。
DeepSeek Harness 插件:Read-only Windows registry access from WSL, restricted to an allowlist of key prefixes.
属于 dsh-wsl-kit 的一部分。
安装
sole plugin --profile web add github:173787247/dsh-wsl-registry
用法
win_reg path='HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion'
win_reg path='HKLM:\SOFTWARE\...' name=ProductName
说明
Read-only, and restricted to an allowlist of key prefixes:
HKLM:\SOFTWARE, HKLM:\SYSTEM\CurrentControlSet\Services, HKCU:\SOFTWARE,
HKLM:\HARDWARE. Keys under a Run or RunOnce segment are refused wherever they
appear — matched as a whole path segment, so ...\CurrentVersion\Run is caught as
well as ...\Run\Something. Values are truncated to 400 characters.
依赖
- Windows + WSL,DeepSeek Harness 跑在 WSL 里。
测试
npm test
单元测试在任何平台都能跑;实时测试在 WSL 之外自动跳过。
兼容性
| 字段 | 值 |
|---|---|
| 插件 | dsh-wsl-registry 0.1.0 |
| 最低 dsh | ≥ 0.1.2(Web UI 一次性 ?token=,Windows 中继 :3081) |
| 最新验证 | 以 dsh-wsl-kit 兼容性 为准(当前 0.2.0-rc.2)— 套件唯一真源 |
| 套件档位 | full 或单独安装 |
许可
MIT
版本历史
- 0.1.02026年11月29日 · 7 KB