🎁 福利专区全网大模型免费应用 + 新用户福利 + 注册活动入口,低成本玩转 AI

GitHub 代理镜像 sevastopol36/dsh-plugin-ghproxy

DeepSeek Harness
sevastopol3635 天前有提交已提供中文文档扫描:含敏感能力

经公共镜像加速拉取 GitHub 文件与仓库资源

30.7/100
综合分
1
GitHub 星标
—
npm 周下载
—/5
用户评分

数据截至 2026/9/30 · 周下载取自 npm 全网(含 CI / 镜像),非本站安装数;综合分由星标、活跃度与兼容性检查合成。

自动兼容检查有告警:未发布到 npm registry,仅可从源码安装。
安装命令 · 需先装 dsh CLI 引擎
dsh plugin --profile web add sevastopol36/dsh-plugin-ghproxy
该包不可直接 npm 安装,改从 GitHub 源安装(明细见下方安装检查)

状态速览

判定依据:实装验证 · 静态安装检查 · 自动扫描 · 仓库维护状态
信任档位:已验证
是什么[目录]—
dsh 原生插件 · market
暂无时间戳·判据 →
装得上吗[实装验证]✓
本站已真实安装成功
非静态推断
L4 · 真实安装等级说明 →
数据截至 2026/10/01·判据 →
安全吗[自动扫描]—
本站尚未对该插件做风险分级
暂未覆盖,不等同于无风险
数据截至 2026/11/04·判据 →
还在维护吗[仓库]—
更新放缓:最近一次提交在 35 天前
暂无时间戳·判据 →
图例:✓ 通过! 需注意— 未判定 / 无数据· 「未判定」= 本站尚无数据,不代表插件有问题
档位由哪些信号合成

本站实装验证(真实安装 L4 覆盖全站;L5 为运行时冒烟或实机截图,覆盖范围小于 L4) · 验证所用 dsh 版本 · 静态安装检查 · 风险分级 · 仓库维护状态。 下方各区块是它的证据明细。

验证判据与等级说明 →

可信度证据

安装兼容性检查⚠ 装前注意

未发布到 npm registry,仅可从源码安装

展开查看检查明细 ↓

以下结论由程序自动检查 npm 包、engines 声明与入口文件得出,未做人工实机验证——能装不等于用着没问题。

✗npm 包dsh-plugin-ghproxy(未发布到 npm,仅可源码安装)
✓Node 引擎要求 >=22.19.0 · 基线 Node 22.19 满足
✓dsh CLI 依赖未声明 dsh 版本约束
✓入口文件main/exports/bin 已声明

验证方式:npm registry 存在性 + package.json 静态校验 · 最后检查 2026/10/15 09:45:42

安全扫描自动 · 静态分析源码
v2.7.0
🔵 扫描:含敏感能力尚无人工评估
展开查看扫描说明与证据 ↓

静态扫描发现插件具备触达本地系统的能力:执行外部命令、读写/删除本地文件、读取剪贴板或密钥类环境变量(至少其一)。这是能力清单,不是危险判定——具体能力项与证据见下方,安装前请自行判断是否需要。

读写/删除本地文件发起外部网络请求
查看扫描证据(共 15 处,展示前 15 条)
  • 读取本地文件
    lib/index.mjs:252
    if (!existsSync(filePath)) return filePath;
  • 读取本地文件
    lib/index.mjs:258
    if (!existsSync(candidate)) return candidate;
  • 发起网络请求
    lib/index.mjs:423
    const response = await fetch(proxyUrl, {
  • 写入本地文件
    lib/index.mjs:486
    await pipeline(Readable.fromWeb(fetched.response.body), limiter, createWriteStream(tmpFile), {
  • 删除本地文件递归
    lib/index.mjs:491
    await rm(dir, { recursive: true, force: true }).catch(() => {});
  • 写入本地文件
    lib/index.mjs:636
    await mkdir(dirname(dest), { recursive: true });
  • 写入本地文件
    lib/index.mjs:639
    await copyFile(tmpFile, finalPath);
  • 删除本地文件递归
    lib/index.mjs:707
    await rm(dir, { recursive: true, force: true }).catch(() => {});
  • 发起网络请求
    lib/index.mjs:733
    const res = await fetch(proxyUrl, {
  • 读取本地文件
    verify.mjs:63
    const manifest = JSON.parse(await readFile(new URL("./package.json", import.meta.url), "utf8"));
  • 读取本地文件
    verify.mjs:70
    const patch = await readFile(new URL("./cordis.patch.yml", import.meta.url), "utf8");
  • 读取本地文件
    verify.mjs:72
    const naming = JSON.parse(await readFile(new URL("./dsh-plugin.naming.json", import.meta.url), "utf8"));
  • 读取本地文件
    verify.mjs:108
    const naming = JSON.parse(await readFile(new URL("./dsh-plugin.naming.json", import.meta.url), "utf8"));
  • 读取本地文件
    verify.mjs:109
    const patch = await readFile(new URL("./cordis.patch.yml", import.meta.url), "utf8");
  • 删除本地文件
    verify.mjs:245
    await rm(dest, { force: true }).catch(() => {});
扫描于 2026/11/4(0 天前) · 范围 入口闭包 + 发布文件清单 · 来源 GitHub 仓库

静态扫描只反映源码中出现的调用,不构成安全背书;人工评估与自动扫描相互独立、互不覆盖。

社区实装还没有人打卡 · 装过的第一个就是你
依赖的 DSH / Cordis 模块
@deepseek-ai/cordis@deepseek-ai/dsh-tools@deepseek-ai/schemastery
给这个插件打分还没有人投票↓
用户评分
还没有人投票,来当第一个

功能亮点

  • 加速拉取GitHub资源
  • 自动健康检查与故障转移

DeepSeek Harness 原生插件:通过公共代理镜像抓取 GitHub 文件、release 资源、压缩包、gist 和 api.github.com JSON,自动健康检查并故障转移

README

由 DeepSeek 最新模型翻译生成
用于 DSH 的 GitHub 代理 为 DeepSeek Harness 提供 GitHub 数据获取能力的原生 Cordis 插件:请求经由可自动切换的公共代理镜像转发,用于解决直连 github.com / raw.githubusercontent.com 时的网络超时。 - 多镜像容错 — 按顺序尝试多个代理,第一个健康的胜出,失效的自动跳过 - 健康度记忆 — 每个镜像的成功/失败结果缓存 5 分钟,避免反复踩坑 - 读取文件 — sevastopol36_ghproxy_fetch 读取 raw / blob / gist / api.github.com JSON - 下载文件 — sevastopol36_ghproxy_download 下载 release 资产、仓库 archive、raw、gist 到本地 - 命令行加速 — sevastopol36_ghproxy_proxy_url 生成全部镜像 URL,供 git clone / curl / wget 使用 - 自带诊断 — sevastopol36_ghproxy_probe 实测每个镜像的 raw / archive / API 三种路线 - 零运行时依赖 — 只用 Node 内置 fetch 与 node:fs / node:stream ⚠️ 重要变更(0.2.0)
展开完整文档(README 剩余 1 节)
用于 DSH 的 GitHub 代理

为 DeepSeek Harness 提供 GitHub 数据获取能力的原生 Cordis 插件:请求经由可自动切换的公共代理镜像转发,用于解决直连 github.com / raw.githubusercontent.com 时的网络超时。

- 多镜像容错 — 按顺序尝试多个代理,第一个健康的胜出,失效的自动跳过
- 健康度记忆 — 每个镜像的成功/失败结果缓存 5 分钟,避免反复踩坑
- 读取文件 — sevastopol36_ghproxy_fetch 读取 raw / blob / gist / api.github.com JSON
- 下载文件 — sevastopol36_ghproxy_download 下载 release 资产、仓库 archive、raw、gist 到本地
- 命令行加速 — sevastopol36_ghproxy_proxy_url 生成全部镜像 URL,供 git clone / curl / wget 使用
- 自带诊断 — sevastopol36_ghproxy_probe 实测每个镜像的 raw / archive / API 三种路线
- 零运行时依赖 — 只用 Node 内置 fetch 与 node:fs / node:stream

⚠️ 重要变更(0.2.0)

0.1.0 只硬编码了一个代理 https://gh.jasonzeng.dev,该服务现已完全不可用——raw 文件、blob 页面、仓库 archive、api.github.com 全部在传输层失败。因此 0.1.0 插件实际上无法抓取任何内容。

0.2.0 改为多镜像列表。实测结果(2026-02):

| 代理 | raw | archive | api.github.com | 延迟 |
| gh-proxy.com | ✅ 200 | ✅ 200 (zip) | ✅ 200 (JSON) | 0.4–0.8 s |
| sevastopol36-ghproxy.net | ✅ 200 | ✅ 200 (zip) | ❌ 403 | 0.7–1.9 s |
| ghfast.top | ✅ 200 | ✅ 200 (zip) | ❌ 403 | 0.6–2.1 s |
| gh.ddlc.top | ✅ 200 | ✅ 200 (zip) | ❌ 404 | 0.6–2.2 s |
| gh.jasonzeng.dev | ❌ | ❌ | ❌ | 传输失败 |

只有 gh-proxy.com 三种路线全部可用,因此它排在首位,且 api.github.com 请求优先走它。

提供的工具

| 工具 | 功能 |
| sevastopol36_ghproxy_fetch | 读取 raw / 文本 / JSON;过大文本或二进制自动落盘 |
| sevastopol36_ghproxy_download | 下载 raw、release 资产、archive(zip/tar.gz)、gist 到本地 |
| sevastopol36_ghproxy_proxy_url | 生成全部镜像 URL(带 [live]/[dead] 标记),供 shell 工具使用 |
| sevastopol36_ghproxy_probe | 实测每个镜像的 raw / archive / API 路线,输出建议配置 |

代理 URL 规则

代理前缀 + 完整原始 URL:

https://gh-proxy.com/https://raw.githubusercontent.com////
https://gh-proxy.com/https://github.com///archive/refs/heads/.zip
https://gh-proxy.com/https://github.com///releases/download//
https://gh-proxy.com/https://gist.githubusercontent.com///raw/
https://gh-proxy.com/https://api.github.com/repos// # 仅部分镜像支持

终端等价用法:

git clone https://gh-proxy.com/https://github.com//.git
curl -LO https://gh-proxy.com/https://github.com///releases/download/v1.0/app.zip

支持的原始主机:github.com、raw.githubusercontent.com、codeload.github.com、 objects.githubusercontent.com、gist.github.com、gist.githubusercontent.com、 api.github.com(JSON,仅 gh-proxy.com 实测支持)。

安装

本插件是标准 dsh bundle(声明了 dsh.bundle.patch):

dsh plugin --profile web add dsh-plugin-ghproxy
或从本地目录
dsh plugin --profile web add ./dsh-plugin-ghproxy

安装后需重启 profile:dsh web

配置

- id: sevastopol36-ghproxy
config:
proxyBases: # 按顺序尝试,第一个健康的胜出
- 'https://gh-proxy.com'
- 'https://sevastopol36-ghproxy.net'
- 'https://ghfast.top'
- 'https://gh.ddlc.top'
- 'https://gh.jasonzeng.dev'
proxyBase: '' # 兼容 0.1.0 的单代理设置,若填写会优先尝试 downloadDir: 'downloads/github' timeoutMs: 60000 retries: 1 retryDelayMs: 800 healthCacheMs: 300000 maxTextBytes: 262144 maxBytes: 209715200 # 200 MB overwrite: false allowApi: true

全部镜像都失败怎么办

sevastopol36_ghproxy_probe # 实测并给出建议 proxyBases sevastopol36_ghproxy_probe include_defaults=true # 连同内置默认镜像一起测

错误信息会列出每个镜像的失败原因。

开发

node test/smoke-ext.mjs # 全部测试(离线 + 联网)
node test/smoke-ext.mjs offline # 只跑离线单元测试

架构

dsh-plugin-ghproxy/
├── package.json # dsh.bundle.patch -> cordis.patch.yml
├── cordis.patch.yml # 注册行: - id: sevastopol36-ghproxy └── lib/index.mjs # Config + 4 个工具 + 镜像健康度跟踪

设计要点:

- 健康度排序:实测成功的镜像优先,失败的排到最后,未知的居中
- 4xx 立即换镜像:4xx 代表该镜像不支持这种 URL,重试无意义
- 落地页识别:代理的广告/错误页("GitHub 文件加速" / "Invalid input." / "Loading...")会被识别为失败,而不是当作文件保存
- 流式落盘 + 大小限制:不会把大文件读进内存,超过 maxBytes 报错

License

MIT

Native Cordis plugin for DeepSeek Harness:
reach GitHub through public file proxies with automatic failover.

- Read — raw files, blob pages, gists, release assets and api.github.com JSON.
- Download — raw files, release assets, repository archives (zip/tar.gz) and gists to disk.
- Shell helpers — sevastopol36_ghproxy_proxy_url prints a mirror URL per configured base, for
git clone / curl / wget.
- Health-checked failover — a mirror answering with a landing page, the wrong content type or an error is marked unhealthy and skipped; sevastopol36_ghproxy_probe measures which mirrors answer each
route (raw / archive / API) and prints a suggested order.
- Zero runtime dependencies — Node's built-in fetch, node:fs and node:stream only.

The proxies are third-party public services that see the URLs routed through them. Do not route
private or credential-bearing URLs.

Install

Straight from GitHub (pnpm clones the repository)
dsh plugin --profile web add github:sevastopol36/dsh-plugin-ghproxy

Or clone first and install from the local directory
git clone https://github.com/sevastopol36/dsh-plugin-ghproxy.git
dsh plugin --profile web add ./dsh-plugin-ghproxy

The repository ships prebuilt ESM, so no build step and no allowBuilds
approval is needed. Restart the profile afterwards (dsh web), or add the
directory on the plugin page of the DSH desktop app.

Names

Every public identifier carries the publisher namespace sevastopol36, which is
what the harness needs to keep two plugins from colliding — a duplicate tool name in one scope is rejected with tool "X" is already registered. The full declaration is in dsh-plugin.naming.json.

| Surface | Value |
| npm package | dsh-plugin-ghproxy |
| plugin module name | sevastopol36-ghproxy |
| loader 行 id | sevastopol36-ghproxy |
| tools | sevastopol36_ghproxy_fetch, sevastopol36_ghproxy_download, sevastopol36_ghproxy_proxy_url, sevastopol36_ghproxy_probe |

验证

node verify.mjs # 离线:18 项断言,不联网、不装依赖
node verify.mjs --live # 追加联网检查;网络不可达时标记为 skip 而非失败
VERIFY_STRICT=1 node verify.mjs --live # 把联网检查也当作硬性失败

verify.mjs 会校验插件的导出形态、dsh.bundle.patch 声明、工具名与 dsh-plugin.naming.json 是否一致,以及每个 @deepseek-ai/dsh peer 范围是否接受 dsh.compatibility.verifiedRuntimes 中列出的运行时。BUILD-INFO.json 记录了每个发布文件的 sha256,因此读者可以确认这里的代码就是经过测试的那份代码。

许可

MIT。

从本仓库安装

本插件是预构建的纯 ESM 源码,仓库里的 lib/ 就是可运行产物,不需要任何构建步骤或 allowBuilds 授权:

从 GitHub 直接安装(pnpm 会 clone 本仓库)
dsh plugin --profile web add github:sevastopol36/dsh-plugin-ghproxy

或先 clone,再从本地目录安装
git clone https://github.com/sevastopol36/dsh-plugin-ghproxy.git
dsh plugin --profile web add ./dsh-plugin-ghproxy

安装后重启 profile(dsh web),或在 DSH 桌面端的插件页里添加该目录。

命名

所有对外标识符都带发布者命名空间 sevastopol36——宿主对同一作用域内的重名工具会直接拒绝(tool "X" is already registered),带前缀才能与他人插件共存。完整声明见 dsh-plugin.naming.json。

验证

node verify.mjs # 离线:18 项断言,不联网、不装依赖
node verify.mjs --live # 追加联网检查;网络不可达时标记为 skip 而非失败
VERIFY_STRICT=1 node verify.mjs --live # 把联网检查也当作硬性失败

verify.mjs 会校验插件导出形态、dsh.bundle.patch 声明、工具名与 dsh-plugin.naming.json 是否一致,以及每个 @deepseek-ai/dsh peer 范围是否接受 package.json 中 dsh.compatibility.verifiedRuntimes 列出的运行时。
BUILD-INFO.json 记录了每个发布文件的 sha256,可用来确认仓库里的代码就是经过测试的那份。

许可

MIT。
预览分享卡片长什么样 ↓sevastopol36/dsh-plugin-ghproxy
分享 · DeepSeek Harness Hub
sevastopol36/dsh-plugin-ghproxy

经公共镜像加速拉取 GitHub 文件与仓库资源

这个插件是你维护的吗?
作者本人可认领并核对本条目;认领通过后,详情页会显示「作者已认领」标记。
认领条目 →
回到顶部