DeepSHPlugins
dsh-cn-boot 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-cn-boot

生態與開發TypeScriptMIT

dsh 國內網路引導:探測 npm/npmmirror/GitHub/HuggingFace/Gitee 與本地代理,讀取登錄檔配置,推薦映象/代理並生成 PowerShell + bash 引導指令碼。預設只讀,apply 顯式。含 CLI 與 agent 可呼叫 cn_boot 工具。

2 Starszoahdev 更新時間 2026-08-18
訪問 GitHub 倉庫
dsh-cn-boot 專案預覽

專案介紹

中文

dsh 國內網路引導:探測 npm/npmmirror/GitHub/HuggingFace/Gitee 與本地代理,讀取登錄檔配置,推薦映象/代理並生成 PowerShell + bash 引導指令碼。預設只讀,apply 顯式。含 CLI 與 agent 可呼叫 cn_boot 工具。

English

China-network bootstrap for dsh: probes npm/npmmirror/GitHub/HuggingFace/Gitee and local proxies, reads registry config, recommends mirrors/proxy, and generates a PowerShell + bash bootstrap script. Read-only by default; apply is explicit. CLI plus an agent-callable cn_boot tool.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
zoahdev
倉庫
zoahdev/dsh-cn-boot
GitHub Stars
2
Forks
0
開發語言
TypeScript
許可證
MIT
最近推送
2026-08-18
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

57/ 100
維護活躍
84
文件與實用資訊
100
生態關注度
14
安裝便捷訊號
80
專案宣告訊號
100

README 含完整安裝與使用說明;關注度尚低(2)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add github:zoahdev/dsh-cn-boot

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

dsh-cn-boot

npm

CI License: MIT dsh-plugin

China-network bootstrap for DeepSeek Harness (dsh): one command that tells you why installs are slow or broken and what to do about it.

It probes the endpoints that matter to a dsh user in mainland China — npm registry, npmmirror, GitHub, raw.githubusercontent, Hugging Face, Gitee — plus common local proxy ports (127.0.0.1:7897 / 10809), reads your current npm/pnpm registry config, and returns concrete recommendations plus a copy-paste bootstrap script. Read-only by default; apply is an explicit opt-in that only sets the npm/pnpm registry to npmmirror.

Install

dsh plugin add dsh-cn-boot

Or run standalone:

npx dsh-cn-boot

CLI

dsh-cn-boot [--apply] [--json] [--timeout <ms>]
  • Prints probe results, recommendations and a PowerShell + bash bootstrap script.
  • --apply runs pnpm config set registry https://registry.npmmirror.com (and npm) when recommended — the only side effect.
  • Exit codes: 0 connectivity looks fine, 1 recommendations, 2 usage error.
npx dsh-cn-boot
npx dsh-cn-boot --apply
npx dsh-cn-boot --json

In-harness usage (agent-callable)

Ask your dsh agent:

检查一下我的网络连 dsh 依赖源通不通,给个引导建议。
Run a China-network bootstrap check: cn_boot.

The tool returns a dsh-cn-boot/v1 result: per-target probe results, current registry config, recommendations, a generated script, and (only with options.apply: true) what was applied.

Checks

ProbeWhy
registry.npmjs.org/-/pingofficial npm registry reachability
registry.npmmirror.com/-/pingthe standard China mirror
github.comdsh source installs / docs
raw.githubusercontent.comraw file downloads
huggingface.comodel/asset downloads
gitee.comdomestic fallback
127.0.0.1:7897 / 127.0.0.1:10809common local proxy ports (Clash / V2Ray)

Why it exists

  • The most common first-hour failure for dsh users in China is a network one: pnpm dlx @deepseek-ai/dsh hangs or ERESOLVE, GitHub clones time out, raw.githubusercontent.com is unreachable.
  • Existing tools tell you *something is broken*; this one tells you *what* and *what to run next* — mirror registry, proxy env, or nothing at all.
  • Zero runtime dependencies, read-only by default, and the apply path is a single, explicit, reversible registry setting.

Development

pnpm install
pnpm typecheck
pnpm build
pnpm test
pnpm test:integration

CI runs the dsh-plugin-doctor preflight, unit tests, packed-artifact integration (real cn_boot invocation), and a fresh-profile dsh web boot smoke on Windows.

License

MIT © 2026 zoahdev


dsh-cn-boot(中文)

DeepSeek Harness(dsh)的国内网络引导插件:一条命令告诉你安装为什么慢/坏,以及该怎么做。

它探测国内 dsh 用户最关心的端点——npm 官方源、npmmirror、GitHub、raw.githubusercontent、Hugging Face、Gitee——以及常见本地代理端口(127.0.0.1:7897 / 10809),读取当前 npm/pnpm 注册表配置,返回具体建议和一份可直接复制的引导脚本(PowerShell + bash)。默认只读;apply 是显式开关,唯一副作用是把 npm/pnpm 注册表设为 npmmirror。

安装

dsh plugin add dsh-cn-boot

独立使用:

npx dsh-cn-boot

CLI

dsh-cn-boot [--apply] [--json] [--timeout <ms>]
  • 输出探测结果、建议和 PowerShell + bash 引导脚本。
  • --apply 在推荐时执行 pnpm config set registry https://registry.npmmirror.com(以及 npm)——唯一的副作用。
  • 退出码:0 网络正常,1 有建议,2 用法错误。
npx dsh-cn-boot
npx dsh-cn-boot --apply
npx dsh-cn-boot --json

在 harness 内使用(agent 可调用)

对 agent 说:

检查一下我的网络连 dsh 依赖源通不通,给个引导建议。

工具返回 dsh-cn-boot/v1 结果:各目标探测结果、当前注册表配置、建议、生成脚本,以及(仅当 options.apply: true 时)已执行的操作。

为什么需要它

  • 国内 dsh 用户第一小时的失败大多是网络问题:pnpm dlx @deepseek-ai/dsh 卡住或 ERESOLVE、GitHub clone 超时、raw.githubusercontent 不通。
  • 现有工具只告诉你“坏了”;这个插件告诉你“哪里坏、下一步跑什么”——换镜像、走代理,或者什么都不用动。
  • 零运行时依赖、默认只读,apply 路径是单一、显式、可逆的注册表设置。

开发

pnpm install
pnpm typecheck
pnpm build
pnpm test
pnpm test:integration

CI 跑 dsh-plugin-doctor 预检、单元测试、打包集成(真实 cn_boot 调用)、Windows 全新 profile 的 dsh web 启动冒烟。

许可证

MIT © 2026 zoahdev

Related ecosystem tools

FAQ

  • How do I install? dsh plugin add dsh-cn-boot or run the CLI directly (see README).
  • Does it need an API key? No.
  • Is it read-only? Yes by default; any write/apply is an explicit flag.

Examples

See the README for full CLI usage. Quick start:

npx dsh-cn-boot --help

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案