Repository navigation
Releases
Releases · stone100010/dsh-token-gauge
v0.1.1
Fixes the npm package and tightens the panel.
Packaging
restart-and-verify.shis now in the npm tarball. 0.1.0 shipped without it — the README and the community announcement both pointed npm users at a file the package did not contain. npm does not allow republishing, hence this patch.CHANGELOG.mdadded and included in the package.
Panel
- Minimum width 436px → 350px. The dials keep their proportions, so they compress evenly instead of being crushed.
- The centre dial prints no caption. It is the tallest of the three, so its caption fell to the very bottom of the panel and read as a stray row.
- Its accessible name moved to a separate
ariaLabel: the dial no longer shows "tok/s" on screen, so it no longer announces it either. - Figures are de-duplicated. The header now uses the same compact notation as the dials (
out 329K, notout 328,768), and the left dial's detail row dropsOutbecause the header already carries it.
Testing
node test/harness.mjs — 61 checks, all passing, including two new guards: the centre dial must not print a caption, and the left dial must not repeat the header's output figure.
v0.1.0
First release. A live token meter for the DSH Web GUI: three instrument dials in a
draggable floating panel, reading the session projections the Web client already
receives.
What it shows
- Token Usage (0–300M) — cumulative tokens across the session log, with the
In / Out split underneath. - tok/s (0–500) — decode throughput, measured from the page's own observation
and falling back to the session's recorded average while idle. - Total Cost (0–$12) — estimated spend against a budget, from reference pricing.
Each dial carries a real scale with green / amber / red warning bands, a needle, and
the figure in large type inside the dial — the way a car's cluster reads at a glance.
Notes
- Read-only by design. The plugin adds no session events, no tools, and no
model-visible content, so it cannot affect a conversation. - The cost dial is an estimate.
deepseek-v4.1-flashis absent from DSH's
installed model catalog, so no cost is computed for it; the defaults mirror the
catalog'sdeepseekfamily entry. Put your gateway's real rates inPRICES. - Mounts on the frame-wide, click-through
shell.overlayseat, so it never blocks
the app underneath. - Developed against DSH
0.1.5-rc.2.
Install
dsh plugin --profile web add @stone100010/dsh-token-gauge