Skip to content

dsh-all-usage v1.0.7

Choose a tag to compare

@ParticleLight ParticleLight released this 23 Aug 15:37
· 32 commits to main since this release

dsh-all-usage v1.0.7

Added

  • Incremental scan cursor: baseline rescans reuse the durable usage ledger as a per-session cursor. Unchanged sessions seed straight from the ledger instead of re-folding every historical event; sessions that gained events fold only the new tail.
  • All-zero usage guard: zero-usage replays no longer overwrite already-recorded turn/step usage, while pure cache-read requests (cache-only hits) still count.
  • Structured token semantics: /api/all-usage now declares a machine-readable accounting contract (tokenSemantics.semantics) — input tokens are fresh (exclude cache), and cache read/write plus reasoning are separate buckets.

Fixed

  • Reduced startup scan cost on long usage history: unchanged sessions are no longer re-folded or rewritten.
  • Prevented a live retry of an already-recorded step from double-counting after a fresh-instance ledger seed.

Verification

  • npm test 28/28 (incl. new aggregation tests: incremental seed, zero-usage guard, cache-only retention, semantics contract).
  • node --check Host + Client, npm pack --dry-run, git diff --check all pass.