dsh-wsl-net
开发工具 活跃维护

dsh-wsl-net

173787247/dsh-wsl-net

提供WSL/Windows代理连通性诊断、Node 24 fetch请求兼容性检测、DeepSeek与npm服务可达性校验,操作轻量,可快速定位跨系统网络配置异常,完成全链路网络健康检查。

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

dsh-wsl-net

DeepSeek Harness tool plugin: net_doctor diagnoses why HTTPS works in the Windows browser but fails from the WSL agent.

和 dsh-wsl-env 互补:那个往 prompt 里写路径事实,这个在会话里跑一遍代理和连通性。

常见原因:Clash 在 Windows 上、HTTP_PROXY 指向 127.0.0.1,但 Node 24 的 fetch 默认不读代理变量,除非 NODE_USE_ENV_PROXY=1。

0.2.0 还会给 bash / npm 子进程补上 NODE_USE_ENV_PROXY=1,以及 Linux 下常见工具会读的小写 http_proxy / https_proxy 别名。dsh 进程自己的 fetch 仍要靠启动脚本里的 NODE_USE_ENV_PROXY=1。

Install

dsh plugin --profile web add github:173787247/dsh-wsl-net
# or a local checkout:
dsh plugin --profile web add /absolute/path/to/dsh-wsl-net

Restart dsh web. In a new session, Trajectory → SYSTEM → Tools should list net_doctor. Ask: 「检查一下现在 DeepSeek API 和 npm 通不通」.

To check child injection, ask bash to run:

node -e "console.log(process.env.NODE_USE_ENV_PROXY, process.env.http_proxy || process.env.HTTP_PROXY)"

Expect 1 and your proxy URL.

What it reports

  • HTTP_PROXY / HTTPS_PROXY / NO_PROXY
  • NODE_USE_ENV_PROXY
  • optional npm registry
  • GET probes: https://api.deepseek.com/ and the npm registry (status < 500 counts as reachable, including 401)
  • advice: what to restart or set; it does not guess a Clash port

Does not print API keys. Does not change your proxy settings or Clash port.

Topics

On GitHub, add dsh-plugin.

Config

Override the whole row in the profile cordis.patch.yml:

- id: dsh-wsl-net
  name: dsh-wsl-net
  config:
    timeoutMs: 20000
    probeTimeoutMs: 5000
    injectChildProxy: true
Key Default Meaning
timeoutMs 20000 Tool timeout.
probeTimeoutMs 5000 Per-probe timeout.
injectChildProxy true Set false to stop wrapping subprocess.spawn.