mirror of
https://github.com/mksglu/context-mode.git
synced 2026-10-02 04:14:38 +08:00
Wave 3b file-tail: codex, qwen-code, kimi. Each parses its session file (codex rollout JSONL token_count events; qwen ~/.qwen chats JSONL ChatRecord.usageMetadata; kimi wire.jsonl usage.record deltas) via a pure no-regex parse fn + cursor-gated extract*UsageSince mirroring claude-code (incremental deltas, bounded compaction fallback). codex + kimi wired into their Stop hooks (cursor-gated read -> attributeAndInsertEvents forward). qwen registers no Stop hook upstream; parse+since ready, hooks/qwen-code/stop.mjs + project_id path resolution noted as remaining. 77 tests green, tsc clean.