{"versions":{"0.1.0":{"name":"dsh-http-proxy","description":"Route DeepSeek Harness model-API requests through an HTTP/SOCKS proxy without modifying Harness source","version":"0.1.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/elizax/dsh-http-proxy.git"},"homepage":"https://github.com/elizax/dsh-http-proxy","bugs":{"url":"https://github.com/elizax/dsh-http-proxy/issues"},"keywords":["deepseek","harness","dsh","proxy","http-proxy","socks","cordis","plugin"],"type":"module","main":"lib/index.js","types":"lib/types/index.d.ts","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./package.json":"./package.json"},"sideEffects":false,"scripts":{"build":"node -e \"require('node:fs').rmSync('lib',{recursive:true,force:true})\" && tsc -p tsconfig.build.json && tsdown","prepublishOnly":"pnpm build","typecheck":"tsc --noEmit"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","external":["@deepseek-ai/dsh-client-runtime/client"]}},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-client-runtime":"^0.1.0-rc.8","@deepseek-ai/dsh-client-ui-settings":"^0.1.0-rc.8","@deepseek-ai/dsh-client-ui-slots":"^0.1.0-rc.8","@deepseek-ai/dsh-settings":"^0.1.0-rc.8","react":"^18.2.0"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1","undici":"^7.28.0"},"devDependencies":{"@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-client-runtime":"0.1.1-rc.1","@deepseek-ai/dsh-client-ui-settings":"0.1.1-rc.1","@deepseek-ai/dsh-client-ui-slots":"0.1.1-rc.1","@deepseek-ai/dsh-settings":">=0.1.1-rc.2","@types/node":"^22.0.0","@types/react":"~18.3.1","lightningcss":"^1.33.0","react":"^18.2.0","tsdown":"^0.22.2","typescript":"^5.6.0"},"gitHead":"9902c36bf35df6a95701d7850148a83439a02499","_id":"dsh-http-proxy@0.1.0","_nodeVersion":"24.19.0","_npmVersion":"9.6.2","dist":{"integrity":"sha512-P0YbzmON1IMFhiUbSw1xD+yxNUc8WqSxa50nKnMmxOgM8vWIWzKQcHVORJv2iopBiHgFPd6Od/7f+Q3XrTag9w==","shasum":"cb8b7a0f905d551d63846ac79252432ff4f87d2a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-http-proxy/-/dsh-http-proxy-0.1.0.tgz","fileCount":22,"unpackedSize":57281,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAPgJaH77qitDvJKYH6dvFE4O+KnBjXxrq7Z7+wNAeW3AiEApkL9X1f1Q9rRyqQYZzURxjse6QPdVZJKR6r5WclEw28="}],"size":18633},"_npmUser":{"name":"anonymous","email":"czhen523@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"czhen523@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-http-proxy_0.1.0_1787808787985_0.2588953561903098"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-27T05:33:08.141Z","publish_time":1787808788141,"_source_registry_name":"default","contributors":[]},"0.1.1":{"name":"dsh-http-proxy","description":"Route DeepSeek Harness model-API requests through an HTTP/SOCKS proxy without modifying Harness source","version":"0.1.1","license":"MIT","repository":{"type":"git","url":"git+https://github.com/elizax/dsh-http-proxy.git"},"homepage":"https://github.com/elizax/dsh-http-proxy","bugs":{"url":"https://github.com/elizax/dsh-http-proxy/issues"},"keywords":["deepseek","harness","dsh","proxy","http-proxy","socks","cordis","plugin"],"type":"module","main":"lib/index.js","types":"lib/types/index.d.ts","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./package.json":"./package.json"},"sideEffects":false,"scripts":{"build":"node -e \"require('node:fs').rmSync('lib',{recursive:true,force:true})\" && tsc -p tsconfig.build.json && tsdown","prepublishOnly":"pnpm build","typecheck":"tsc --noEmit"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web"}},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.2","@deepseek-ai/dsh-client-store":">=0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-settings":">=0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-renderer":">=0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-slots":">=0.1.2-alpha.2","@deepseek-ai/dsh-settings":">=0.1.2-alpha.2","react":"^18.2.0"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.2","undici":"^7.28.0"},"devDependencies":{"@deepseek-ai/cordis":"^4.0.2","@deepseek-ai/dsh-brand":"0.1.2-alpha.2","@deepseek-ai/dsh-client-store":"0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-settings":"0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-renderer":"0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-slots":"0.1.2-alpha.2","@deepseek-ai/dsh-invariants":"0.1.2-alpha.2","@deepseek-ai/dsh-scope":"0.1.2-alpha.2","@deepseek-ai/dsh-session":"0.1.2-alpha.2","@deepseek-ai/dsh-settings":"0.1.2-alpha.2","@types/node":"^22.0.0","@types/react":"~18.3.1","lightningcss":"^1.33.0","react":"^18.2.0","tsdown":"^0.22.2","typescript":"^5.6.0"},"gitHead":"a6020afac03d54cd03c52a07e74875b4dc8d7925","_id":"dsh-http-proxy@0.1.1","_nodeVersion":"24.19.0","_npmVersion":"9.6.2","dist":{"integrity":"sha512-iAW6DItgggoELpYBblByyO2DZsCdh1RnEexvfBTt9+Y1vEwIaeSu6yjmf5TWUlCYwcJEidc56DltBzQJngLBvA==","shasum":"4a29d964f796a1a4beff252c6d7734b7a7365b44","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-http-proxy/-/dsh-http-proxy-0.1.1.tgz","fileCount":22,"unpackedSize":57732,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEBs6QS+kxWdO4RilsKYp0pLQOS2uWlGlM3VpvfiBxHOAiEAkv0crDdDWpfhft/c8cRo4xyp4vs4f4CFZulqEsOuarM="}],"size":18813},"_npmUser":{"name":"anonymous","email":"czhen523@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"czhen523@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-http-proxy_0.1.1_1788192122095_0.9198355480455407"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-31T16:02:02.222Z","publish_time":1788192122222,"_source_registry_name":"default","contributors":[]},"0.1.2":{"name":"dsh-http-proxy","description":"Route DeepSeek Harness model-API requests through an HTTP/SOCKS proxy without modifying Harness source","version":"0.1.2","license":"MIT","repository":{"type":"git","url":"git+https://github.com/elizax/dsh-http-proxy.git"},"homepage":"https://github.com/elizax/dsh-http-proxy","bugs":{"url":"https://github.com/elizax/dsh-http-proxy/issues"},"keywords":["deepseek","harness","dsh","proxy","http-proxy","socks","cordis","plugin"],"type":"module","main":"lib/index.js","types":"lib/types/index.d.ts","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./package.json":"./package.json"},"sideEffects":false,"scripts":{"build":"node -e \"require('node:fs').rmSync('lib',{recursive:true,force:true})\" && tsc -p tsconfig.build.json && tsdown","prepublishOnly":"pnpm build","typecheck":"tsc --noEmit"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web"}},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.2","@deepseek-ai/dsh-client-store":">=0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-settings":">=0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-renderer":">=0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-slots":">=0.1.2-alpha.2","@deepseek-ai/dsh-settings":">=0.1.2-alpha.2","react":"^18.2.0"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.2","undici":"^7.28.0"},"devDependencies":{"@deepseek-ai/cordis":"^4.0.2","@deepseek-ai/dsh-brand":"0.1.2-alpha.2","@deepseek-ai/dsh-client-store":"0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-settings":"0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-renderer":"0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-slots":"0.1.2-alpha.2","@deepseek-ai/dsh-invariants":"0.1.2-alpha.2","@deepseek-ai/dsh-scope":"0.1.2-alpha.2","@deepseek-ai/dsh-session":"0.1.2-alpha.2","@deepseek-ai/dsh-settings":"0.1.2-alpha.2","@types/node":"^22.0.0","@types/react":"~18.3.1","lightningcss":"^1.33.0","react":"^18.2.0","tsdown":"^0.22.2","typescript":"^5.6.0"},"gitHead":"3d05cfd77c6b9983a3775877f09d1f7d90a80cf1","_id":"dsh-http-proxy@0.1.2","_nodeVersion":"24.19.0","_npmVersion":"9.6.2","dist":{"integrity":"sha512-wq0unJJRopMwATitiDib9QDg1AGyHudybShrdrIVRxb4AjQIwn0urXfWyFmpgOpZ5a7PNdQg6q1YsIxSLmbbUA==","shasum":"a6e5dffe7b6db86f80039f2ec4bb889583d4eea0","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-http-proxy/-/dsh-http-proxy-0.1.2.tgz","fileCount":22,"unpackedSize":58388,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD+hszz4jlf1WMIR2LApYhQjmlEE/JB1j3/pA91TpYNPwIgFScmuIS+l071672DOWljF39DMb481trJpunfKM8xjo8="}],"size":19206},"_npmUser":{"name":"anonymous","email":"czhen523@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"czhen523@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-http-proxy_0.1.2_1788267715673_0.27136842782331083"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-09-01T13:01:55.807Z","publish_time":1788267715807,"_source_registry_name":"default","contributors":[]},"0.1.3":{"name":"dsh-http-proxy","description":"Route DeepSeek Harness model-API requests through an HTTP/SOCKS proxy without modifying Harness source","version":"0.1.3","license":"MIT","repository":{"type":"git","url":"git+https://github.com/elizax/dsh-http-proxy.git"},"homepage":"https://github.com/elizax/dsh-http-proxy","bugs":{"url":"https://github.com/elizax/dsh-http-proxy/issues"},"keywords":["deepseek","harness","dsh","proxy","http-proxy","socks","cordis","plugin"],"type":"module","main":"lib/index.js","types":"lib/types/index.d.ts","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./package.json":"./package.json"},"sideEffects":false,"scripts":{"build":"node -e \"require('node:fs').rmSync('lib',{recursive:true,force:true})\" && tsc -p tsconfig.build.json && tsdown","prepublishOnly":"pnpm build","typecheck":"tsc --noEmit"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web"}},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.2","@deepseek-ai/dsh-client-store":">=0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-settings":">=0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-renderer":">=0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-slots":">=0.1.2-alpha.2","@deepseek-ai/dsh-settings":">=0.1.2-alpha.2","react":"^18.2.0"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.2","undici":"^7.28.0"},"devDependencies":{"@deepseek-ai/cordis":"^4.0.2","@deepseek-ai/dsh-brand":"0.1.2-alpha.2","@deepseek-ai/dsh-client-store":"0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-settings":"0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-renderer":"0.1.2-alpha.2","@deepseek-ai/dsh-client-ui-slots":"0.1.2-alpha.2","@deepseek-ai/dsh-invariants":"0.1.2-alpha.2","@deepseek-ai/dsh-scope":"0.1.2-alpha.2","@deepseek-ai/dsh-session":"0.1.2-alpha.2","@deepseek-ai/dsh-settings":"0.1.2-alpha.2","@types/node":"^22.0.0","@types/react":"~18.3.1","lightningcss":"^1.33.0","react":"^18.2.0","tsdown":"^0.22.2","typescript":"^5.6.0"},"gitHead":"95b3499754faf0af4e480f47f02be8b00b08c2f3","_id":"dsh-http-proxy@0.1.3","_nodeVersion":"24.19.0","_npmVersion":"9.6.2","dist":{"integrity":"sha512-sM3ro7pN3mGu0Cy8h9mot30dKvsdcgEiGQ/FfJsPC49smtSNVTucb9SGi2yt69K0nsEbE2L2JRl1Im9dETTIfw==","shasum":"18d1290543528eaf7e7c5c4db3b7fc37c60c43f2","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-http-proxy/-/dsh-http-proxy-0.1.3.tgz","fileCount":22,"unpackedSize":68034,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEa57R4paRhsRFGysYAi4NWXM6KwAqZgie2/N5Q0rRCvAiAzCWq/d0AunAg/Hswvtg52dSXw1rM+3icllj/ABne7kg=="}],"size":22139},"_npmUser":{"name":"anonymous","email":"czhen523@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"czhen523@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-http-proxy_0.1.3_1788772868819_0.8127880529592242"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-09-07T09:21:08.947Z","publish_time":1788772868947,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.1.3"},"name":"dsh-http-proxy","time":{"created":"2026-08-27T05:33:20.079Z","modified":"2026-09-07T09:21:27.026Z","0.1.0":"2026-08-27T05:33:08.141Z","0.1.1":"2026-08-31T16:02:02.222Z","0.1.2":"2026-09-01T13:01:55.807Z","0.1.3":"2026-09-07T09:21:08.947Z"},"readme":"# dsh-http-proxy\n\n给 DeepSeek Harness（DSH）加「模型请求走代理、其它请求直连」的能力，**不修改任何 DSH 官方代码**。\n\n本机访问不到大模型、但代理服务器能访问时，装上本插件并配好代理，DSH 就把所有模型 API 请求走代理发出；web 搜索、网页抓取、MCP 等其它请求仍走本机直连。\n\n## 功能\n\n- 按域名路由：模型 API 域名走代理，其它域名直连；卸载后完全恢复原状，不残留任何东西\n- 代理支持 `http` / `https` / `socks4` / `socks4a` / `socks5` / `socks5h`\n- 自动识别模型域名（`proxyHosts` 留空时）：\n  - `api.deepseek.com`（官方 DeepSeek 默认域名）\n  - `DEEPSEEK_BASE_URL` 环境变量指向的域名\n  - `llm-pi-ai` 里配置的自定义网关域名\n  - pi-ai 内置 provider 的默认端点（openai、anthropic、google、google-vertex、mistral、groq 等）——provider 没手写 `baseURL` 也会被自动代理\n- 域名条目支持普通域名、`域名:端口`、完整 URL，以及 `.域名` / `*.域名` 后缀条目（`.example.com` 同时匹配 `example.com` 和它的所有子域；Vertex、Azure 这类区域化端点用它最方便）\n- 设置页 UI 改完下一次请求即生效，无需重启\n\n## 安装\n\n> ⚠️ **请用带版本号的命令安装**：pnpm ≥ 10 的 `minimumReleaseAge` 策略会暂时跳过刚发布的新版本，不带版本号安装可能解析到旧版。**显式指定版本号可绕过该策略。**\n\n```bash\ndsh plugin --profile <你的profile名> add dsh-http-proxy@0.1.3\n```\n\n**想装最新版？** 先查最新版本号，把命令里的版本号换掉：\n\n```bash\nnpm view dsh-http-proxy version\n```\n\n**从 GitHub 装源码版**（始终最新代码，无需编译，需要能访问 GitHub）：\n\n```bash\ndsh plugin --profile <你的profile名> add github:elizax/dsh-http-proxy\n```\n\n> **兼容性**：需要 DSH ≥ 0.1.2-alpha.2（0.1.2 起客户端包做了拆分重组）。更早的 DSH 版本请改用本仓库更早的提交。\n\n**升级已装的插件**：用插件市场（dshmarket）的更新功能，或直接用新版本号重新执行上面的安装命令。装不上指定版本（比如镜像同步有延迟）时，稍等片刻重试即可。\n\n## 重启\n\n```bash\ndsh --profile <你的profile名>\n```\n\n## 配置\n\n两种方式效果相同；若同时设置，以 UI（settings）里的 `proxy` 为准。\n\n**方式 A：网页 UI（推荐）**\n\n打开 DSH 的**设置 → 插件配置**，找到「HTTP 代理」卡片，填入代理地址，点保存。改完下一次请求生效。卡片还支持「只代理这些域名」和「排除域名」，用于按需控制代理范围。\n\n**方式 B：环境变量（不改文件，适合临时试用）**\n\n```powershell\n$env:DSH_HTTP_PROXY = 'socks5://127.0.0.1:7890'\n```\n\n环境变量只提供代理地址，等价于 UI 里的「代理地址」；域名过滤沿用默认的自动识别。值不合法（无效 URL 或不支持的协议）时插件**不会**启动失败，而是保持直连并在日志里提示。\n\n### 配置字段\n\n| 字段 | 含义 |\n| --- | --- |\n| `proxy` | 代理 URL（`http` / `https` / `socks4` / `socks4a` / `socks5` / `socks5h`）。留空则插件不生效 |\n| `proxyHosts` | 只代理这些域名。**留空 = 自动代理所有模型域名**；填写 = 只代理列出的这些域名 |\n| `excludeHosts` | 排除域名：永远不走代理，优先级最高（即使被自动识别或列在 `proxyHosts` 里，也会被排除） |\n\n两个域名字段的条目写法相同：普通域名、`域名:端口`、完整 URL、或 `.域名` / `*.域名` 后缀条目（支持从下拉列表选择已知模型域名）。\n\n## 与 DSH 0.1.3+ 内置代理的关系\n\nDSH 0.1.3 起自带环境变量代理（`HTTP_PROXY` / `HTTPS_PROXY` / `ALL_PROXY` / `NO_PROXY`）：**所有**出站请求都遵循它（用 `NO_PROXY` 排除，不支持 SOCKS）。本插件方向相反——**默认只有模型域名走代理**，并且支持 SOCKS 和设置页热切换：\n\n- 整个环境都要走代理 → 用 DSH 自带的环境变量即可，无需本插件\n- 只有模型请求要走代理、代理是 SOCKS、或想随时在 UI 切换 → 用本插件\n- 两者同时启用 → 模型请求走本插件的代理，其余请求走 DSH 环境变量代理\n\n## 卸载\n\n```bash\ndsh plugin --profile <你的profile名> remove dsh-http-proxy\ndsh --profile <你的profile名>    # 重启生效\n```\n\n卸载后 DSH 完全恢复直连，不残留任何配置改动。\n\n## 限制\n\n- 按**域名**区分「模型请求」和「其它请求」。某域名同时承载模型和别的用途时（自动识别列表里的 `chatgpt.com`、`api.cloudflare.com` 等），那些请求也会一并走代理；介意的话把相关域名写进「排除域名」。\n- `transport: websocket` 的流式传输不经 `fetch`，保持直连。\n- amazon-bedrock 等经厂商原生 SDK 私有通道发出的请求不经 `fetch`，本插件无法代理；这类请求可用 DSH 0.1.3+ 自带的环境变量代理处理。\n- 代理认证仅支持在代理 URL 中内嵌凭据（如 `http://user:pass@host:port`，DSH 会原样保存并在设置界面显示该 URL）；不提供单独的认证配置字段。\n\n## 开发\n\n改完 `src/` 后重新构建并提交 `lib/`：\n\n```bash\npnpm install\npnpm build      # 生成 lib/\ngit add lib/\ngit commit -m \"build\"\n```\n\n## License\n\nMIT","users":{}}