All plugins

DSH / BUNDLE / CLIENT-UI

dsh-token-tracker

v0.1.0XiaHouSheng / dsh-token-trackerff0e50b5fd

InstallableBundlesUI & client pluginsCommunity · Topic auto-analysisWeb UI

Overview

dsh-token-tracker

Fold provider token usage from the durable session log, price it with a peak/off-peak table, and surface totals in the dsh web GUI plus a standalone overview page and JSON API.

README / EN

Package documentation

Registry summary

Fold provider token usage from the durable session log, price it with a peak/off-peak table, and surface totals in the dsh web GUI plus a standalone overview page and JSON API.

dsh.pub verifies the pinned bundle contract, runtime facts, and distribution semantics. The complete README remains in the source repository.

Read the full README on GitHub

LIMITATIONS

Known limitations

- Token accounting depends on the provider reporting `usage` on `assistant/message` events; without it the plugin falls back to a character-count estimate (marked `≈`), which is not a billing-grade count. - Peak/off-peak pricing is timezone-anchored to Beijing time and the pricing cache has a short TTL, so a pricing-file edit takes a few seconds to appear. - Peer versions in the Publish form are bracketed ranges (`^0.1.0-rc.5`). They are satisfied by a matching harness install; keep them in step with the deployed harness edition, or `dsh plugin add` will warn about unsatisfied peers. - The overview page auto-refreshes on a slow 10-minute interval (and pauses while the tab is hidden); very large session logs are capped at the first 300 sessions in the table.