@kenz1117/dsh-ui-usage-billing 1.1.8 → 1.1.10

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
@@ -101,7 +101,21 @@
101
101
 
102
102
  ## 🚀 快速开始
103
103
 
104
- 在宿主 `cordis.patch.yml` 中加入:
104
+ 先确认宿主代际(`dsh --version`),再按代际选安装命令——**装错线会在市场侧被 `engines.dsh` 声明拦截**(v1.1.10 起声明生效):
105
+
106
+ - **DSH 0.1.0-rc.8 ~ 0.1.1-rc.2**(本线适配的宿主):
107
+
108
+ ```sh
109
+ dsh plugin add npm:@kenz1117/dsh-ui-usage-billing@stable
110
+ ```
111
+
112
+ - **DSH 0.1.2 系宿主**(0.1.2-alpha.1 起):本线不适配,请装预览线 `@latest`:
113
+
114
+ ```sh
115
+ dsh plugin add npm:@kenz1117/dsh-ui-usage-billing@latest
116
+ ```
117
+
118
+ 也可以在宿主 `cordis.patch.yml` 中手动加入:
105
119
 
106
120
  ```yaml
107
121
  - insert:
@@ -109,12 +123,6 @@
109
123
  name: '@kenz1117/dsh-ui-usage-billing'
110
124
  ```
111
125
 
112
- 或通过包管理器安装:
113
-
114
- ```sh
115
- npm install @kenz1117/dsh-ui-usage-billing
116
- ```
117
-
118
126
  启动宿主后,侧边栏设置上方即出现计费入口。无需额外配置;`sessionPersistence` 可用时自动聚合真实用量。
119
127
 
120
128
  ## ⚙️ 工作原理