mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-03 11:01:22 +08:00
feat: replace Codex estimated usage with precise JSONL session log parsing
Replace the 70/30 input/output token estimation from state_5.sqlite with precise parsing of Codex CLI JSONL session logs (~/.codex/sessions/). - Parse event_msg (token_count), turn_context, and session_meta events - Compute exact input/output/cached token deltas from cumulative totals - Reuse session_log_sync table for incremental file scanning - Pre-filter lines with string contains() before JSON deserialization - Add codex_session data source to DataSourceBar with i18n (zh/en/ja)
This commit is contained in:
@@ -1023,7 +1023,8 @@
|
||||
"dataSource": {
|
||||
"proxy": "プロキシ",
|
||||
"session_log": "セッションログ",
|
||||
"codex_db": "Codex DB"
|
||||
"codex_db": "Codex DB",
|
||||
"codex_session": "Codex セッション"
|
||||
},
|
||||
"sessionSync": {
|
||||
"trigger": "セッションログを同期",
|
||||
|
||||
Reference in New Issue
Block a user