Skip to content
dsh.fish
Bundle

dsh-cache-precision

In-place three-decimal cache-hit percentage plus a widened composer stats line for DSH Web.

Source
Cheng-cheng9669
stars
4 stars
License
MIT
Updated
Updated 6 days ago

Readme

# dsh-cache-precision

English | [中文](README.zh.md)

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

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

Restart `dsh web`.

Install

dsh plugin --profile web add github:Cheng-cheng9669/dsh-cache-precision#70ef04a27b50b4b48764e792a6e21ca58afc8bda

Profile: web

Source