@kenz1117/dsh-ui-usage-billing 1.4.15 → 1.4.17

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.en.md CHANGED
@@ -112,7 +112,7 @@ The billing channel is detected from the current session's model: DeepSeek meter
112
112
 
113
113
  Check your host generation first (`dsh --version`), then pick the matching install command — **a mismatched line is rejected by the DSH Store via the `engines.dsh` declaration** (declared since v1.0.41). Note that `dsh plugin add` requires an explicit `--profile` (otherwise it fails with `required option '--profile <name>' not specified`), and prefer **pinning an exact version** over `@latest` (pnpm's `minimumReleaseAge` cooldown skips freshly published versions and may fall back to the other line):
114
114
 
115
- - **DSH 0.1.2 ~ 0.1.6 era** (0.1.2-alpha.1 and later; npm `latest` currently at 0.1.5-rc.2, with the alpha preview moved to 0.1.6-alpha.2; `npm ls -g @deepseek-ai/dsh` shows 0.1.2-* ~ 0.1.6-*):
115
+ - **DSH 0.1.2 ~ 0.2.0 era** (0.1.2-alpha.1 and later; npm `latest` currently at 0.2.0-rc.2; `npm ls -g @deepseek-ai/dsh` shows 0.1.2-* ~ 0.2.0-*):
116
116
 
117
117
  ```sh
118
118
  dsh plugin --profile web add npm:@kenz1117/dsh-ui-usage-billing@latest
@@ -238,7 +238,7 @@ The host discovers the browser side automatically via the `dsh.client` declarati
238
238
 
239
239
  - **Permission level: high**: reads durable session logs (files), calls official multi-vendor / subscription / balance / pricing APIs (network), reads `apiKeyEnv` via the credentials seam (credentials), writes the ledger and stats snapshot under the harness home (`DSH_HOME` / `~/.dsh`) (persistent state); **no** command execution / shell.
240
240
  - **Update channel: `user-reviewed`**: with file / network / credential capabilities, DSH STORE requires local manual confirmation on every install; review the repo, pinned commit, lifecycle scripts, and impact scope before installing.
241
- - **Compatibility**: the preview line (npm `latest`/`alpha`, 1.2.x — kept above the stable line to kill the version inversion) targets DSH `0.1.2` ~ `0.1.6` (host `latest` currently at 0.1.5-rc.2, verified on real hardware; 0.1.6-alpha.1/2 declared compatible — zero code changes in the plugin's dependency packages); the stable line (npm `stable`, 1.1.x, **frozen**, final v1.1.17) targets legacy hosts `0.1.0-rc.8` ~ `0.1.1-rc.2`. Per-version declarations live in `package.json` under `dsh.compatibility`; the two-line mapping and monitoring mechanism are documented in [COMPATIBILITY.md](COMPATIBILITY.md). Node.js `^22.19.0 || >=24.0.0`.
241
+ - **Compatibility**: the preview line (npm `latest`/`alpha`, 1.4.x — kept above the stable line to kill the version inversion) targets DSH `0.1.2` ~ `0.2.0` (host `latest` currently at 0.2.0-rc.2; per-version compatibility declarations grow as real-hardware verification lands); the stable line (npm `stable`, 1.1.x, **frozen**, final v1.1.17) targets legacy hosts `0.1.0-rc.8` ~ `0.1.1-rc.2`. Per-version declarations live in `package.json` under `dsh.compatibility`; the two-line mapping and monitoring mechanism are documented in [COMPATIBILITY.md](COMPATIBILITY.md). Node.js `^22.19.0 || >=24.0.0`.
242
242
  - **Lifecycle**: no `preinstall` / `install` / `postinstall` / `prepare` (ready on install).
243
243
  - **No impersonation**: adds only its own entry id `ui-usage-billing`; `@deepseek-ai/dsh-*` packages are `peerDependencies` only (no reinstall / replace / shadowing of official components); the package uses the third-party namespace `@kenz1117/*`.
244
244
  - **Build artifacts**: runtime files `lib/*` and `cordis.patch.yml` are committed at the pinned commit and declared in `files`.
package/README.md CHANGED
@@ -112,7 +112,7 @@ DeepSeek / Kimi / 智谱 GLM / 腾讯云 TokenHub 等 7 家官方余额、Coding
112
112
 
113
113
  先确认宿主代际(`dsh --version`),再按代际选安装命令——**装错线会在市场侧被 `engines.dsh` 声明拦截**(v1.0.41 起声明生效)。注意 `dsh plugin add` 需要显式 `--profile`(缺省会报 `required option '--profile <name>' not specified`),且建议**钉具体版本号**而非 `@latest`(pnpm 的 `minimumReleaseAge` 冷静期会让刚发布的版本被跳过、回退到旧线):
114
114
 
115
- - **DSH 0.1.2 ~ 0.1.6 系**(0.1.2-alpha.1 起,现行 latest 为 0.1.5-rc.2(alpha 预览已前移 0.1.6-alpha.2);`npm ls -g @deepseek-ai/dsh` 显示 0.1.2-* ~ 0.1.6-*):
115
+ - **DSH 0.1.2 ~ 0.2.0 系**(0.1.2-alpha.1 起,现行 latest 为 0.2.0-rc.2;`npm ls -g @deepseek-ai/dsh` 显示 0.1.2-* ~ 0.2.0-*):
116
116
 
117
117
  ```sh
118
118
  dsh plugin --profile web add npm:@kenz1117/dsh-ui-usage-billing@latest
@@ -251,7 +251,7 @@ npm publish --access public
251
251
 
252
252
  - **权限等级:high**:读取持久会话日志(文件)、访问多厂商官方 / 订阅 / 余额 / 定价 API(网络)、经凭据 seam 读取 `apiKeyEnv`(凭据)、写入 harness home(`DSH_HOME` / `~/.dsh`)下的账本与快照(持久状态);**不含**命令执行 / Shell。
253
253
  - **更新通道:`user-reviewed`**:本插件具备文件 / 网络 / 凭据能力,DSH STORE 采用每次安装需本机人工确认的通道;安装前请复核仓库、固定 Commit、生命周期脚本与影响范围。
254
- - **兼容范围**:预览线(npm `latest`/`alpha`,1.2.x,自 v1.2.0 起恒高于稳定线以消除版本号倒挂)适配 DSH `0.1.2` ~ `0.1.6` 系(宿主 `latest` 现指向 0.1.5-rc.2,已真机验证;0.1.6-alpha.1/2 已声明兼容,插件依赖包零代码变更);稳定线(npm `stable`,1.1.x,**已冻结**,终版 v1.1.17)适配旧宿主 `0.1.0-rc.8` ~ `0.1.1-rc.2`。逐版本声明见 `package.json` 的 `dsh.compatibility`,双线对照与监控机制见 [COMPATIBILITY.md](COMPATIBILITY.md)。Node.js `^22.19.0 || >=24.0.0`。
254
+ - **兼容范围**:预览线(npm `latest`/`alpha`,1.4.x,自 v1.2.0 起恒高于稳定线以消除版本号倒挂)适配 DSH `0.1.2` ~ `0.2.0` 系(宿主 `latest` 现指向 0.2.0-rc.2,逐版本兼容声明随真机验证扩展);稳定线(npm `stable`,1.1.x,**已冻结**,终版 v1.1.17)适配旧宿主 `0.1.0-rc.8` ~ `0.1.1-rc.2`。逐版本声明见 `package.json` 的 `dsh.compatibility`,双线对照与监控机制见 [COMPATIBILITY.md](COMPATIBILITY.md)。Node.js `^22.19.0 || >=24.0.0`。
255
255
  - **生命周期**:无 `preinstall` / `install` / `postinstall` / `prepare`(安装即用)。
256
256
  - **不冒用官方**:仅新增自有 entry id `ui-usage-billing`;对 `@deepseek-ai/dsh-*` 仅为 `peerDependencies` 依赖(不重复安装 / 不替换 / 不遮蔽官方组件),包名使用第三方命名空间 `@kenz1117/*`。
257
257
  - **打包产物**:运行文件 `lib/*` 与 `cordis.patch.yml` 已随固定 Commit 提交并声明在 `files`。