dsh-doctor-windows
开发工具 活跃维护

dsh-doctor-windows

sublatesublate-design/dsh-doctor-windows

Windows平台的Harness环境诊断工具,可自动检测系统依赖缺失、配置异常、运行权限错误等常见问题,输出可视化诊断报告,辅助用户快速定位修复环境故障,无需复杂手动排查。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
32 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:sublatesublate-design/dsh-doctor-windows
git clone https://github.com/sublatesublate-design/dsh-doctor-windows.git
git clone git@github.com:sublatesublate-design/dsh-doctor-windows.git
README.md main

dsh-doctor-windows

Windows environment diagnostics for DeepSeek Harness. The plugin adds a human-only /doctor-windows command, so it still works when the model provider is unavailable.

Checks

  • Harness, Node.js, platform, and architecture versions.
  • Whether the current workspace is readable and writable.
  • UTF-16 low-byte-zero characters that affected preview versions of the native folder picker can truncate.
  • Proxy variables and Node's NODE_USE_ENV_PROXY startup setting. Node added built-in environment-proxy support in 22.21.0 and 24.0.0.
  • Discovery and real non-interactive startup of PowerShell 7 (pwsh) and Windows PowerShell.
  • The Koffi installation owned by Harness's native folder picker, including one harmless GetCurrentProcessId call.

The command does not print proxy URLs or credential values, change settings, open a folder dialog, or make network requests.

Install from a checkout

Build and test the package:

pnpm install
pnpm run check

Install the checkout into the Web profile:

dsh plugin --profile web add C:\path\to\dsh-doctor-windows
dsh --profile web --dump-config
dsh web

Open a workspace and run:

/doctor-windows

Remove it with:

dsh plugin --profile web remove dsh-doctor-windows

Install from GitHub

Git dependencies run the package's prepare script. With pnpm 10 or newer, allow the exact package key in the profile's pnpm-workspace.yaml, then install a pinned commit:

dsh plugin --profile web add github:sublatesublate-design/dsh-doctor-windows#v0.1.0

Only allow build scripts from source you trust.

Configuration

Override the bundle row in the profile's cordis.patch.yml:

- id: doctor-windows
  name: dsh-doctor-windows
  config:
    commandName: doctor-windows
    processTimeoutMs: 5000
    processGraceMs: 1000
    maxOutputBytes: 16384
    checkNativePicker: true

Development

pnpm run typecheck
pnpm run test
pnpm run build
pnpm run smoke
pnpm pack --dry-run

License

MIT