Skip to content

v0.2.3 — DSH 0.2.1 锚点适配

Choose a tag to compare

@vrvtvy vrvtvy released this 17 Oct 10:09
· 6 commits to main since this release

首个针对 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 起,StatsPills registers one dock entry per pill and marks each with
    data-composer-stat instead of the former whole-row data-composer-stats container. 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 because data-session-stats-usage did not change.

变更 / Changed

  • 选择器并列新旧两套锚点,只认 usage pill(activity pill 只放轮次与速度,无缓存命中读数)/
    The selector lists both anchors and names only the usage value; the activity entry
    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 与 / and 0.2.1-rc.2

安装 / Install

dsh plugin --profile web add dsh-cache-hit-precision

桌面端「设置 → 插件 → 添加插件」直接填包名即可。详见 README。