@yanglaofish/dsh-proxy-pro 1.0.0 → 1.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 CHANGED
@@ -21,7 +21,7 @@
21
21
 
22
22
  ```sh
23
23
  dsh plugin --profile web add @yanglaofish/dsh-proxy-pro
24
- dsh plugin --profile obsidian-web add @yanglaofish/dsh-proxy-pro
24
+ dsh plugin --profile test add @yanglaofish/dsh-proxy-pro
25
25
  ```
26
26
 
27
27
  **方式 B:GitHub 源安装**
@@ -70,7 +70,7 @@ proxy:
70
70
 
71
71
  ```sh
72
72
  dsh plugin --profile web remove @yanglaofish/dsh-proxy-pro
73
- dsh plugin --profile obsidian-web remove @yanglaofish/dsh-proxy-pro
73
+ dsh plugin --profile test remove @yanglaofish/dsh-proxy-pro
74
74
  ```
75
75
 
76
76
  卸载即恢复原始路由行为,不留残留。
@@ -145,7 +145,7 @@ npm test
145
145
 
146
146
  - 纯逻辑层 `lib/proxy-core.js` 零 DSH 依赖,可独立单测。
147
147
  - **GitHub 安装模式**:改代码需 `git push` 后 `pnpm update @yanglaofish/dsh-proxy-pro` 再重启 `dsh web` 生效。
148
- - **npm 安装模式**:bump 版本 → `npm publish --registry=https://registry.npmjs.org` 后,profile 内 `pnpm add @yanglaofish/dsh-proxy-pro@最新版` 再重启 `dsh web` 生效。
148
+ - **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`。)
149
149
  - **本地开发模式**(改代码重启即生效):`dsh plugin --profile web add file:../../plugins/dsh-proxy-pro`。
150
150
 
151
151
  ## 许可
@@ -7,7 +7,7 @@
7
7
  ## 0. 前置(已就绪,无需操作)
8
8
 
9
9
  - [x] 单测 16/16 通过、语法 OK、git 干净(head = afb96b4)
10
- - [x] web / obsidian-web 两 profile 已装入 `dsh-proxy-pro`(node_modules 为 Junction 软链)
10
+ - [x] web / test 两 profile 已装入 `dsh-proxy-pro`(node_modules 为 Junction 软链)
11
11
  - [x] `dsh --dump-config` 预检:两 profile 组合树均含 `- id: dsh-proxy-pro` 行
12
12
  - [x] settings.yaml 的 `proxy.enabled: true` → 重启后插件**启动即接管**系统代理(预期行为)
13
13
 
@@ -52,9 +52,9 @@
52
52
  `<profile>/cordis.patch.yml` 追加一行 `- id: proxy, disabled: true`(禁旧
53
53
  dsh-plugin-proxy)→ 重启 → 复测 A1-A6。回滚 = 删该行,settings.yaml 全程不动。
54
54
 
55
- ## 6. obsidian-web 复用
55
+ ## 6. test 复用
56
56
 
57
- 用 `dsh --profile obsidian-web` 启动 → 重复 §2-§3(A10)。
57
+ 用 `dsh --profile test` 启动 → 重复 §2-§3(A10)。
58
58
 
59
59
  ---
60
60