Repository navigation
Releases
v0.2.4 — 自动发布
首个通过 Trusted Publishing(OIDC)自动发布到 npm 的版本 / First release published
through Trusted Publishing (OIDC).
Added
- GitHub Release 发布后自动发包:
.github/workflows/release.yml用 id-token 向 npm 换取
一次性凭证,仓库不保存任何 npm token / Publishing to npm is triggered by this Release;
the workflow exchanges a GitHub Actions id-token for a one-time credential, and no npm
token is stored. - 发布前四道语义门禁:标签匹配、预发布状态一致、dist-tag 路由(预发布 →
next)、
latest不回退;发布后回查 registry 确认可安装 / Four semantic gates before publishing
(tag match, prerelease parity, dist-tag routing, no latest rollback) and a post-publish
registry check. - 新增 RELEASING.md
记录一次性绑定与每次发版步骤 / Added RELEASING.md. - README 增加 Awesome DSH Plugin 徽章与
powered by dsh徽章 / README badges.
Install
dsh plugin --profile web add dsh-cache-hit-precision本版无功能变更,仅发布流程与文档 / No behavior change in this release; automation and docs only.
v0.2.3 — DSH 0.2.1 锚点适配
首个针对 DSH 0.2.1 的适配版本 / First release adapted to DSH 0.2.1.
修复 / Fixed
-
适配 DSH 0.2.1 的 pill 级锚点 / Adapted to DSH 0.2.1's per-pill anchor
DSH 0.2.1 起
StatsPills把 composer 统计行拆成每个 pill 一个 dock entry,锚点由整行容器
data-composer-stats改为单个 pill 的data-composer-stat。插件原先只认旧容器,在新宿主上
querySelectorAll恒为空,底部统计行的缓存命中率回落到内置精度。从 0.2.1 起,
StatsPillsregisters one dock entry per pill and marks each with
data-composer-statinstead of the former whole-rowdata-composer-statscontainer. The
plugin knew only the old container, so the composer reading fell back to the built-in
precision.「Token 用量」弹窗不受影响:
data-session-stats-usage未变,那条精化路径一直有效 /
The token-usage dialog was unaffected becausedata-session-stats-usagedid not change.
变更 / Changed
- 选择器并列新旧两套锚点,只认
usagepill(activitypill 只放轮次与速度,无缓存命中读数)/
The selector lists both anchors and names only theusagevalue; theactivityentry
carries turns and speed, never a cache-hit reading - 新增 3 条回归测试,覆盖两代锚点 / Three regression tests covering both shipped markups
- 新增 CHANGELOG.md
兼容性 / Compatibility
- 已验证 / Verified on DSH
0.2.0-rc.2与 / and0.2.1-rc.2
安装 / Install
dsh plugin --profile web add dsh-cache-hit-precision桌面端「设置 → 插件 → 添加插件」直接填包名即可。详见 README。
v0.2.2 — npm 首发
首个发布到 npm 的版本 / First release published to npm.
dsh plugin --profile web add dsh-cache-hit-precision桌面端「设置 → 插件 → 添加插件」直接填包名即可;按目录安装的方式保留为备选,详见 README。
v0.2.1 — DSH 0.2 适配版
首个以 dsh-cache-hit-precision 名义发布的版本 / First release under the dsh-cache-hit-precision name.
- 适配 DSH
0.2.0-rc.*(已在0.2.0-rc.2验证)/ Adapted to DSH0.2.0-rc.*(verified on0.2.0-rc.2) - 缓存命中率原位精化到三位小数:composer 统计行、「Token 用量」弹窗、底部状态行 / In-place three-decimal cache-hit readout in the composer stats pills, the token-usage dialog, and the status line
- 精确整数半进位舍入,分母与 DSH 计费口径完全一致 / Half-up rounding in exact integer arithmetic; denominator identical to DSH's own billing buckets
安装 / Install:
git clone https://github.com/vrvtvy/dsh-cache-hit-precision.git然后在 DSH 桌面端「设置 → 插件 → 添加插件」填入克隆目录的绝对路径。详见 README。
延续自 Cheng-cheng9669 的 dsh-cache-precision(MIT)。/ Continued from Cheng-cheng9669's dsh-cache-precision (MIT).