Repository navigation
Releases
Releases · xin1223yue/dsh-cost-pill
v1.1.0 - per-turn cost chip
Adds the per-turn readout and fixes the dialog surface.
Added
conversation.chat.assistant-actionschip: every completed turn shows what it cost, right beside the shipped usage badge. Click it for that turn's input / cache-hit / output split, model, billing instant and unit price.- Shared popover shell for both entries (outside click, Escape, viewport clamping).
Fixed
- The bill dialog had no backdrop blur, so composer text bled through the translucent menu surface. It now wears the shipped stat-dialog material with a fallback blur value.
- Unloaded history was priced at "now", which re-billed a daytime conversation at the night rate when reopened. It now rides the blended rate the priced turns actually paid.
Docs
- Rendered
docs/demo.pnganddocs/turn.pngfrom the plugin's own stylesheet. - CI runs the offline suite, a manifest check and a
client.jsparse.
v1.0.0 — live conversation spend
First public release.
Two readouts, one pricing engine:
conversation.composer.dockcell — total spend of the open conversation, in CNY.conversation.chat.assistant-actionschip — what each completed turn cost, next to the shipped usage badge.
Every reply is priced at its own turn/start instant with the official DeepSeek table (including the 2026-08-17 peak/off-peak policy). Reopening a historical conversation keeps the historical prices; tokens with no per-turn record are estimated at the blended rate of priced turns and always carry a ≈.
Install: clone, then install.ps1 (Windows) or install.sh (macOS/Linux), restart dsh web, hard-refresh.