DeepSHPlugins
dsh-wsl-net 项目预览
GITHUB / COMMUNITY PROJECT

dsh-wsl-net

工具与集成JavaScriptMIT

提供 net_doctor 工具,报告代理环境、NODE_USE_ENV_PROXY,以及 DeepSeek API 与 npm registry 的连通性,并为 bash 和 npm 子进程设置 NODE_USE_ENV_PROXY。

2 Stars173787247 更新时间 2026-09-04
访问 GitHub 仓库
dsh-wsl-net 项目预览

项目介绍

中文

提供 net_doctor 工具,报告代理环境、NODE_USE_ENV_PROXY,以及 DeepSeek API 与 npm registry 的连通性,并为 bash 和 npm 子进程设置 NODE_USE_ENV_PROXY。

English

Adds a net_doctor tool that reports proxy environment, NODE_USE_ENV_PROXY, and reachability of the DeepSeek API and the npm registry, and sets NODE_USE_ENV_PROXY on bash and npm child processes.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
173787247
仓库
173787247/dsh-wsl-net
GitHub Stars
2
Forks
0
开发语言
JavaScript
许可证
MIT
最近推送
2026-09-04
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

57/ 100
维护活跃
96
文档与实用信息
85
生态关注度
14
安装便捷信号
80
项目声明信号
100

近 7 天仍在更新;README 含完整安装与使用说明;关注度尚低(2)。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add github:173787247/dsh-wsl-net

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

dsh-wsl-net

Install set: part of dsh-wsl-kit. Prefer KIT_SET=daily | llm | github | full (see kit README). Fault tree: TROUBLESHOOTING.md.

DeepSeek Harness tool plugin: net_doctor diagnoses why HTTPS works in the Windows browser but fails from the WSL agent—and returns copy-paste fix scripts.

Pairs with dsh-wsl-env. Part of dsh-wsl-kit.

中文说明 → README.zh.md


Why

Clash / V2Ray often runs on Windows with HTTP_PROXY=http://127.0.0.1:…. Node 24 fetch ignores proxy env vars unless NODE_USE_ENV_PROXY=1. The browser can look fine while the agent cannot reach DeepSeek or npm.

What it does

  • Reports HTTP_PROXY / HTTPS_PROXY / ALL_PROXY / NO_PROXY (userinfo redacted), NODE_USE_ENV_PROXY, optional npm registry
  • Also inspects the running dsh web process env (dshWeb) so you can tell tool-process vs host-process proxy flags apart
  • TCP-probes the configured proxy port (proxyListen)
  • Probes DeepSeek API and the npm registry (HTTP status < 500 counts as reachable, including 401)
  • Returns advice plus fix.steps / fix.scripts (reuses current proxy when set; otherwise a 127.0.0.1:7890 template you must edit)
  • Optionally injects NODE_USE_ENV_PROXY=1 and lowercase http_proxy aliases into bash/npm child processes (injectChildProxy)

Does not print API keys, change Clash ports, or invent a proxy URL when none is configured.

Install

dsh plugin --profile web add github:173787247/dsh-wsl-net

Restart dsh web. In a new session, Tools should list net_doctor. Example ask: “Check whether DeepSeek API and npm are reachable.”

Child injection check:

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

Expect 1 and your proxy URL when a child bash/npm is wrapped.

Tool parameters

ArgValuesMeaning
targetall (default), env, deepseek, npmWhat to check

Config

- id: dsh-wsl-net
  name: dsh-wsl-net
  config:
    timeoutMs: 20000
    probeTimeoutMs: 5000
    injectChildProxy: true
KeyDefaultMeaning
timeoutMs20000Tool timeout
probeTimeoutMs5000Per-probe timeout
injectChildProxytrueWrap subprocess.spawn / spawnTerminal

Changelog (short)

  • 0.3.0 — fix copy-paste scripts
  • 0.2.x — child proxy injection; redact proxy userinfo; ALL_PROXY

Test

npm test

License

MIT

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目