Skip to content

Releases

v0.1.1 - initial open-source release

Choose a tag to compare

@wakeup595626-cmyk wakeup595626-cmyk released this 22 Sep 15:33

中文

首个开源版本。

  • 跨 API 提供商的全局累积 token 账本,与官方 dsh-token-meter 同契约、提供商无关
  • 实时:订阅 session/event 增量消费所有活跃会话;历史:启动时异步回填所有 session.jsonl.zstd(拼 zstd 帧、逐帧解压、按 seq 去重)
  • 悬浮面板(可拖拽、位置持久化)+ HTTP API;统一以「亿」为单位(1e8 tokens)展示
  • 数据落盘 ~/.dsh/token-ledger/ledger.json(tmp + rename 原子写、定时防抖)
  • 所有路径 try/catch,统计异常绝不影响会话主流程

English

First open-source release.

  • A cumulative token usage ledger across every API provider, provider-agnostic and aligned with the official dsh-token-meter event contract
  • Live: subscribes to session/event and consumes every active session incrementally. History: on startup it backfills every session.jsonl.zstd (concatenated zstd frames, decompressed frame by frame, de-duplicated by seq).
  • Draggable floating panel with persisted position, plus an HTTP API
  • Persists to ~/.dsh/token-ledger/ledger.json with atomic tmp + rename writes
  • Every code path is wrapped in try/catch so statistics can never break a session

BSD-3-Clause licensed. Unofficial plugin not affiliated with, or endorsed by, DeepSeek.