github AgentWorkforce/burn ledger-v0.31.0
@relayburn/ledger@0.31.0

2 hours ago

[0.31.0] - 2026-04-27

Added

  • queryAllFromArchive(query) + archiveAvailable() (#82). New read-side entry point in @relayburn/ledger that issues SQL against archive.sqlite and returns the same EnrichedTurn[] shape as queryAll, so consumers (starting with burn summary) can swap implementations without touching their aggregation code. Filters land as WHERE clauses against indexed columns (ts, model, project_key, session_id, source, materialized enrichment columns); arbitrary stamp keys not promoted to columns fall back to a json_extract over enrichment_json to match queryAll semantics. Tool calls are bulk-hydrated keyed on (source, session_id, message_id) so callers that read turn.toolCalls keep working without an extra round-trip. Fidelity is reconstructed from the persisted attribution_fidelity / tokens_present / cost_present columns plus class-implied coverage defaults — class equality (the load-bearing parity contract for summarizeFidelity) is preserved; the synthesized coverage shape may differ from the on-ledger blob for classes that don't pin every flag.

Don't miss a new burn release

NewReleases is sending notifications on new releases.