refactor: collect Claude Code from One API, drop OpenCode - #8
Merged
Conversation
Claude Code and OpenCode local collectors are removed. Claude Code now derives from One API's Claude model family (account-level, rebuilt for the last two calendar days; older local values stay frozen). Codex stays on the local ~/.codex rollout JSONL collector. OpenCode tool series is removed. One API ownership rule bumps to v2 and excludes only the GPT/Codex family, splitting Claude into a dedicated series.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更
Claude Code 和 OpenCode 的本地采集全部移除,改从 One API 网关采集。
~/.codexrollout JSONL 采集(不走网关)。涉及
scripts/oneapi_usage.py:aggregate_records 拆分 claude series + ownership v2scripts/usage_pipeline.py:移除 opencode 全链路 + ccusage/LiteLLM 死代码,新增 claude 账号级 reconcilescripts/machine_fragments.py:LOCAL_TOOL_PREFIXES 仅 codexusage.ts/interaction.ts、README card、README/DESIGN 文档test_ccusage_pricing_retry.py验证
test_positive_model_remainder与 codex-cache-backfill 事务测试),与本次改动无关npm run test:frontend80/80 通过