@yanglaofish/dsh-proxy-pro 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -1
- package/docs/LESSONS.md +1251 -1217
- package/lib/client.js +5 -3
- package/lib/index.js +909 -902
- package/lib/proxy-core.js +17 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -135,6 +135,13 @@ dsh-proxy-pro
|
|
|
135
135
|
|
|
136
136
|
## 开发
|
|
137
137
|
|
|
138
|
+
本地测试使用 Node.js 24(与发布 CI 一致)。多 profile 分别运行在独立进程中,
|
|
139
|
+
可以使用不同监听端口并共用同一个上游代理;每个页面只能向自己的 `host:port`
|
|
140
|
+
提交插件配置。此校验不影响代理端口、内网源或 `NO_PROXY`。
|
|
141
|
+
|
|
142
|
+
启动会在插件初始化完成前应用已保存的代理配置;默认关闭时不改动已有传输。
|
|
143
|
+
状态、系统提示和诊断提示会隐藏代理 URL 中的认证信息,连接参数及配置编辑框仍保留完整值。
|
|
144
|
+
|
|
138
145
|
```sh
|
|
139
146
|
# 语法检查
|
|
140
147
|
node --check lib/index.js lib/client.js lib/proxy-core.js
|
|
@@ -143,6 +150,15 @@ node --check lib/index.js lib/client.js lib/proxy-core.js
|
|
|
143
150
|
npm test
|
|
144
151
|
```
|
|
145
152
|
|
|
153
|
+
装有官方 Windows 桌面版时,可额外运行真实内核验证(替换为本机安装目录):
|
|
154
|
+
|
|
155
|
+
```powershell
|
|
156
|
+
node scripts/verify-desktop-runtime.mjs 'E:\Agenttools\deepseek\app'
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
该验证在两个隔离进程内加载桌面版自带依赖,以本地测试代理检查认证、启动首请求、
|
|
160
|
+
直连和关闭一方后的进程隔离,同时执行真实工具 schema 编译;不会修改已安装的 profile。
|
|
161
|
+
|
|
146
162
|
- 纯逻辑层 `lib/proxy-core.js` 零 DSH 依赖,可独立单测。
|
|
147
163
|
- **GitHub 安装模式**:改代码需 `git push` 后 `pnpm update @yanglaofish/dsh-proxy-pro` 再重启 `dsh web` 生效。
|
|
148
164
|
- **npm 安装模式**:bump 版本 → `npm publish --access=public --registry=https://registry.npmjs.org --replace-registry-host=never` 后,profile 内 `pnpm add @yanglaofish/dsh-proxy-pro@最新版` 再重启 `dsh web` 生效。(scoped 包发布必须 `--access=public`;本机 npm 默认 registry 被公司镜像接管且 `replace-registry-host` 会重写 GET——发布与验证一律显式 `--registry` 官方源 + `--replace-registry-host=never`。)
|
|
@@ -150,4 +166,4 @@ npm test
|
|
|
150
166
|
|
|
151
167
|
## 许可
|
|
152
168
|
|
|
153
|
-
MIT
|
|
169
|
+
MIT
|