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 已验证
★ 3
在 GitHub 查看
功能介绍
把内置缓存命中率原位显示为 3 位小数,并加宽底部统计行避免内容被截断。
适合
- 需要观察 DSH 内置会话缓存命中率细微变化的用户。
- 需要用三位小数比较缓存行为的 Web UI 环境。
- 底部输入区统计信息当前被截断、需要加宽原位统计行的用户。
不适合
- 不关注缓存命中率或只需要整数精度的用户。
- 需要改变缓存策略或优化缓存性能的工作流;该插件只调整显示精度和宽度。
- 内置输入区统计行之外的界面;该插件只修改这一特定位置。
README
dsh-cache-precision
| English | 中文 |
Two in-place composer-dock refinements:
- Rewrites the built-in cache-hit percentage with three decimals
(
缓存命中 12%->缓存命中 12.345%). - Widens the built-in stats line (
max-widthgrows 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 元数据,并保持插件与本页展示的目录身份一致。
兼容性以页面上展示的 bundle 与 profile 状态为准。如果某个 profile 尚未检测到,请先保持禁用,并在生产启用前阅读仓库文档。
GitHub 链接和 activity 元数据是 release 与维护状态的来源。新版本发布后重新查看本页,确认目录已经观察到最新版本。