[0.30.0] - 2026-04-27
Changed
burn__sessionCostandburn__currentBlockquery the analytics archive on the hot path (#97). Both tool handlers now default toqueryTurnsFromArchive(a single SQL query againstarchive.sqlite) instead of folding the entire JSONL ledger on every MCP call. Tool responses are equivalent to the pre-migration implementation within float-rounding tolerance for cost. Each call also runs an incrementalbuildArchive()first so turns appended to the JSONL ledger by hooks mid-session show up in the next tool response — the build is cursor-driven and a no-op when nothing has changed since the last call. If the archive cannot be opened or the query throws, both handlers transparently fall back toqueryAlland emit a one-line note via the newonLogdependency hook (the CLI server wires this to stderr) so persistent breakage is visible without ever refusing to serve.