Cheng-cheng9669/dsh-cache-precision

DSH client plugin: render the built-in session cache-hit percentage with three decimal places.

Bundle 已验证 MIT JavaScript v0.1.1
Bundle 已验证

已收录

3

Tools

Bundle 已验证

版本v0.1.1
语言JavaScript
许可证MIT
在 GitHub 查看

功能介绍

把内置缓存命中率原位显示为 3 位小数,并加宽底部统计行避免内容被截断。

适合

  • 需要观察 DSH 内置会话缓存命中率细微变化的用户。
  • 需要用三位小数比较缓存行为的 Web UI 环境。
  • 底部输入区统计信息当前被截断、需要加宽原位统计行的用户。

不适合

  • 不关注缓存命中率或只需要整数精度的用户。
  • 需要改变缓存策略或优化缓存性能的工作流;该插件只调整显示精度和宽度。
  • 内置输入区统计行之外的界面;该插件只修改这一特定位置。

README

dsh-cache-precision

English 中文

Two in-place composer-dock refinements:

  1. Rewrites the built-in cache-hit percentage with three decimals (缓存命中 12% -> 缓存命中 12.345%).
  2. Widens the built-in stats line (max-width grows beyond the chat content width) so the extra precision and other dock items no longer truncate with ....

Both read the same tokenUsage projection and re-apply automatically after React re-renders.

Install

dsh plugin --profile web add D:\Dsh\tools\dsh-cache-precision

Restart dsh web.

常见问题常见问题

在启用了 DSH 的终端中执行已验证命令 dsh plugin --profile default add github:Cheng-cheng9669/dsh-cache-precision。命令会解析公开 package 元数据,并保持插件与本页展示的目录身份一致。