Files
hermes-agent/apps/shared/src
yoniebans cf71b1aa30 refactor(shared): one session.usage tick mapper for Ink and Desktop
Desktop's canonicalUsage re-implemented Ink's usageFromTick and had already drifted: it dropped avg_latency_s and active_subagents. The mapper now lives in @hermes/shared (usage-tick), Ink re-exports it from domain/usage and Desktop calls it directly, so both clients project gateway/session_usage.py::usage_stats the same way. Desktop's zero-tick fallback is preserved by the shared first-non-zero counter rule.
2026-10-16 22:10:26 +02:00
..
…
…
…
…