diff --git a/README.ja.md b/README.ja.md
index bbcd84e2e..19c4f72ca 100644
--- a/README.ja.md
+++ b/README.ja.md
@@ -79,7 +79,6 @@
|
| [Trae IDE](https://www.trae.ai/) / [Trae Solo](https://www.trae.ai/solo)(国際版) | `tokscale trae sync` で `~/.config/tokscale/trae-cache/sessions/*.json` にキャッシュ(公式 API のアカウント単位使用量) | ✅ 対応 |
|
| [Zed Agent](https://zed.dev/docs/ai/agent-panel) | `~/.local/share/zed/threads/threads.db`(macOS: `~/Library/Application Support/Zed/threads/threads.db`; Windows: `%LOCALAPPDATA%/Zed/threads/threads.db`; ホスティング済み Zed モデル専用、外部 ACP エージェントは対象外) | ✅ 対応 |
| Kiro | Kiro | `~/.kiro/sessions/cli/*.json`(+ `*.jsonl`)と `~/.local/share/kiro-cli/data.sqlite3`(macOS: `~/Library/Application Support/kiro-cli/data.sqlite3`) | ✅ 対応 |
-|
| [Synthetic](https://synthetic.new/) | `hf:`モデルや`synthetic`プロバイダを検出して他ソースから再帰属(+ [Octofriend](https://github.com/synthetic-lab/octofriend): `~/.local/share/octofriend/sqlite.db`) | ✅ 対応 |
[🚅 LiteLLMの価格データ](https://github.com/BerriAI/litellm)を使用してリアルタイム価格計算を提供し、階層型価格モデルとキャッシュトークン割引をサポートしています。
@@ -146,7 +145,7 @@ AI支援開発の時代において、**トークンは新しいエネルギー*
- 9色テーマのGitHubスタイル貢献グラフ
- リアルタイムフィルタリングとソート
- ゼロフリッカーレンダリング
-- **マルチプラットフォームサポート** - OpenCode、Claude Code、Codex CLI、Copilot CLI、Cursor IDE、Gemini CLI、Amp、Codebuff、Droid、OpenClaw、Hermes Agent、Pi、OMP、Kimi CLI、Qwen CLI、Roo Code、Kilo、Mux、Kilo CLI、Crush、Goose、Antigravity、Zed、Kiro、Trae、Synthetic全体の使用量追跡
+- **マルチプラットフォームサポート** - OpenCode、Claude Code、Codex CLI、Copilot CLI、Cursor IDE、Gemini CLI、Amp、Codebuff、Droid、OpenClaw、Hermes Agent、Pi、OMP、Kimi CLI、Qwen CLI、Roo Code、Kilo、Mux、Kilo CLI、Crush、Goose、Antigravity、Zed、Kiro、Trae 全体の使用量追跡
- **リアルタイム価格** - 1時間ディスクキャッシュ付きでLiteLLMから現在の価格を取得;OpenRouter自動フォールバックと新規モデル向けCursor価格サポート
- **詳細な内訳** - 入力、出力、キャッシュ読み書き、推論トークン追跡
- **ネイティブRustコア** - 10倍高速な処理のため、すべての解析と集計をRustで実行
@@ -318,14 +317,11 @@ tokscale -c opencode -c claude
# Cursor IDE は事前に `tokscale cursor login` が必要
tokscale --client cursor
-# Synthetic(synthetic.new)は他のエージェントセッションから検出されます
-tokscale --client synthetic
-
# 他のフィルターと組み合わせ
tokscale --client opencode,claude --week --json
```
-利用可能な値: `opencode`, `claude`, `codex`, `copilot`, `gemini`, `cursor`, `amp`, `codebuff`, `droid`, `openclaw`, `hermes`, `pi`, `omp`, `kimi`, `qwen`, `roocode`, `kilocode`, `kilo`, `mux`, `crush`, `goose`, `antigravity`, `zed`, `kiro`, `trae`, `synthetic`。
+利用可能な値: `opencode`, `claude`, `codex`, `copilot`, `gemini`, `cursor`, `amp`, `codebuff`, `droid`, `openclaw`, `hermes`, `pi`, `omp`, `kimi`, `qwen`, `roocode`, `kilocode`, `kilo`, `mux`, `crush`, `goose`, `antigravity`, `zed`, `kiro`, `trae`。
> **非推奨のお知らせ**: 既存の単一クライアントフラグ(`--opencode`、`--claude`、`--codex` など)は後方互換性のため引き続き動作しますが、`--help` から非表示となり、次のメジャーリリースで削除予定です。可能な限り `--client` への移行を推奨します。インタラクティブな端末で旧フラグを使用すると 1 行の警告が表示されます。
@@ -537,7 +533,7 @@ Tokscaleは設定を`~/.config/tokscale/settings.json`に保存します:
| `autoRefreshEnabled` | boolean | `false` | TUIの自動更新を有効化 |
| `autoRefreshMs` | number | `60000` | 自動更新間隔(30000-3600000ms) |
| `nativeTimeoutMs` | number | `300000` | ネイティブサブプロセス処理の最大時間(5000-3600000ms) |
-| `defaultClients` | string[] | `[]` | `--client/-c` フラグを渡さない場合に適用されるクライアントフィルター。`--client` と同じ ID を受け付けます(例: `["opencode", "claude", "synthetic"]`)。未知の ID は無視されます。CLI フラグが指定されるとこのリストは完全に無視されます — マージはしません。 |
+| `defaultClients` | string[] | `[]` | `--client/-c` フラグを渡さない場合に適用されるクライアントフィルター。`--client` と同じ ID を受け付けます(例: `["opencode", "claude", "zed"]`)。未知の ID は無視されます。CLI フラグが指定されるとこのリストは完全に無視されます — マージはしません。 |
| `light.writeCache` | boolean | `false` | `true` のとき、`tokscale --light` はレンダリング直後に TUI キャッシュを原子的に上書きします。CLI フラグ `--write-cache` / `--no-write-cache` が実行ごとに優先されます。 |
| `minutelyTabEnabled` | boolean | `false` | TUI に分単位の Minutely タブを表示し、データ読み込み時に分単位の集計を実行します。分単位の粒度はほとんどのユーザーにとってニッチな診断ビューであり、大規模データセットでは分単位のバケット処理に無視できないコストがかかるため、既定では無効になっています。 |
@@ -657,7 +653,7 @@ tokscale sources --json
- **インタラクティブツールチップ**: ホバーで詳細な日別内訳を表示
- **日別内訳パネル**: クリックでソース別、モデル別の詳細を確認
- **年別フィルタリング**: 年間を移動
-- **ソースフィルタリング**: プラットフォーム別フィルター(OpenCode、Claude、Codex、Copilot、Cursor、Gemini、Amp、Codebuff、Droid、OpenClaw、Hermes Agent、Pi、OMP、Kimi、Qwen、Roo Code、Kilo、Mux、Kilo CLI、Crush、Goose、Antigravity、Zed、Kiro、Trae、Synthetic)
+- **ソースフィルタリング**: プラットフォーム別フィルター(OpenCode、Claude、Codex、Copilot、Cursor、Gemini、Amp、Codebuff、Droid、OpenClaw、Hermes Agent、Pi、OMP、Kimi、Qwen、Roo Code、Kilo、Mux、Kilo CLI、Crush、Goose、Antigravity、Zed、Kiro、Trae)
- **統計パネル**: 総コスト、トークン、活動日数、連続記録
- **FOUC防止**: Reactハイドレーション前にテーマを適用(フラッシュなし)
@@ -969,7 +965,6 @@ AIコーディングツールはクロスプラットフォームの場所にセ
| Goose | `~/.local/share/goose/sessions/` (+ macOS Application Support、レガシー Block パス) | `%USERPROFILE%\.local\share\goose\sessions\` | `GOOSE_PATH_ROOT` 環境変数で設定可能 |
| Antigravity | `~/.config/tokscale/antigravity-cache/sessions/` | — | `tokscale antigravity sync` は現在 macOS / Linux でのみサポート |
| Trae | `~/.config/tokscale/trae-cache/sessions/` | `%APPDATA%\tokscale\trae-cache\sessions\` | `tokscale trae sync` で 1 回だけ同期。インストール済みの Trae IDE または Trae Solo デスクトップアプリから資格情報を自動検出 |
-| Synthetic | 他ソースから再帰属 | 他ソースから再帰属 | `hf:`モデル + `synthetic`プロバイダを検出 |
> **注**: Windowsでは`~`は`%USERPROFILE%`に展開されます(例:`C:\Users\ユーザー名`)。これらのツールは`%APPDATA%`のようなWindowsネイティブパスではなく、クロスプラットフォームの一貫性のためにUnixスタイルのパス(`.local/share`など)を意図的に使用しています。
@@ -1293,12 +1288,6 @@ Goose はセッションごとの使用量を SQLite の `sessions.db` に保存
Codebuff(旧 Manicode)はチャットごとに JSON ファイルを書き出します。Tokscale は `metadata.usage`、`metadata.codebuff.usage`、および run-state の `messageHistory[*].providerOptions` フォールバックからトークン使用量を解析し、部分的に新しいエントリが実トークン数を持つ古いエントリを覆い隠さないように履歴を逆順に走査します。メッセージごとのタイムスタンプが欠けている場合は chat-id ディレクトリ名、最後にファイルの mtime にフォールバックします。
-### Synthetic (synthetic.new)
-
-Synthetic は他ソースのメッセージを後処理で再帰属します。`hf:`プレフィックスのモデル ID または `synthetic` / `glhf` / `octofriend` プロバイダを検出した場合、ソースを `synthetic` として扱います。
-
-また `~/.local/share/octofriend/sqlite.db` を検出し、トークン情報を持つレコードを取り込みます。
-
## 価格
Tokscaleは[LiteLLMの価格データベース](https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json)からリアルタイム価格を取得します。
diff --git a/README.ko.md b/README.ko.md
index 203b6cb4e..a834cf77e 100644
--- a/README.ko.md
+++ b/README.ko.md
@@ -79,7 +79,6 @@
|
| [Trae IDE](https://www.trae.ai/) / [Trae Solo](https://www.trae.ai/solo) (국제판) | `tokscale trae sync`로 `~/.config/tokscale/trae-cache/sessions/*.json`에 캐싱 (공식 API의 계정 단위 사용량) | ✅ 지원 |
|
| [Zed Agent](https://zed.dev/docs/ai/agent-panel) | `~/.local/share/zed/threads/threads.db` (macOS: `~/Library/Application Support/Zed/threads/threads.db`; Windows: `%LOCALAPPDATA%/Zed/threads/threads.db`; 호스팅된 Zed 모델 전용, 외부 ACP 에이전트 제외) | ✅ 지원 |
| Kiro | Kiro | `~/.kiro/sessions/cli/*.json` (+ `*.jsonl`) 및 `~/.local/share/kiro-cli/data.sqlite3` (macOS: `~/Library/Application Support/kiro-cli/data.sqlite3`) | ✅ 지원 |
-|
| [Synthetic](https://synthetic.new/) | `hf:` 모델/`synthetic` provider 감지로 다른 소스에서 재귀속 (+ [Octofriend](https://github.com/synthetic-lab/octofriend): `~/.local/share/octofriend/sqlite.db`) | ✅ 지원 |
[🚅 LiteLLM의 가격 데이터](https://github.com/BerriAI/litellm)를 사용해 **실시간 비용 계산**을 제공합니다. 구간별 가격 모델(대용량 컨텍스트 등)과 **캐시 토큰 할인**도 지원합니다.
@@ -146,7 +145,7 @@ AI 지원 개발 시대에 **토큰은 새로운 에너지**입니다. 토큰은
- 9가지 테마의 GitHub 스타일 기여 그래프
- 실시간 필터링 및 정렬
- 깜빡임 없는 렌더링
-- **멀티 플랫폼 지원** - OpenCode, Claude Code, Codex CLI, Copilot CLI, Cursor IDE, Gemini CLI, Amp, Codebuff, Droid, OpenClaw, Hermes Agent, Pi, OMP, Kimi CLI, Qwen CLI, Roo Code, Kilo, Mux, Kilo CLI, Crush, Goose, Antigravity, Zed, Kiro, Trae, Synthetic 사용량 통합 추적
+- **멀티 플랫폼 지원** - OpenCode, Claude Code, Codex CLI, Copilot CLI, Cursor IDE, Gemini CLI, Amp, Codebuff, Droid, OpenClaw, Hermes Agent, Pi, OMP, Kimi CLI, Qwen CLI, Roo Code, Kilo, Mux, Kilo CLI, Crush, Goose, Antigravity, Zed, Kiro, Trae 사용량 통합 추적
- **실시간 가격 반영** - LiteLLM에서 최신 가격을 가져와(디스크 캐시 1시간) 비용 계산; OpenRouter 자동 폴백 및 신규 모델용 Cursor 가격 지원
- **상세 분석** - 입력, 출력, 캐시 읽기/쓰기, 추론 토큰까지 추적
- **네이티브 Rust 코어** - 모든 파싱과 집계를 Rust로 처리해 최대 10배 빠른 성능
@@ -317,14 +316,11 @@ tokscale -c opencode -c claude
# Cursor IDE는 사전에 `tokscale cursor login` 필요
tokscale --client cursor
-# Synthetic (synthetic.new) 은 다른 에이전트 세션에서 검출됨
-tokscale --client synthetic
-
# 다른 필터와 조합
tokscale --client opencode,claude --week --json
```
-가능한 값: `opencode`, `claude`, `codex`, `copilot`, `gemini`, `cursor`, `amp`, `codebuff`, `droid`, `openclaw`, `hermes`, `pi`, `omp`, `kimi`, `qwen`, `roocode`, `kilocode`, `kilo`, `mux`, `crush`, `goose`, `antigravity`, `zed`, `kiro`, `trae`, `synthetic`.
+가능한 값: `opencode`, `claude`, `codex`, `copilot`, `gemini`, `cursor`, `amp`, `codebuff`, `droid`, `openclaw`, `hermes`, `pi`, `omp`, `kimi`, `qwen`, `roocode`, `kilocode`, `kilo`, `mux`, `crush`, `goose`, `antigravity`, `zed`, `kiro`, `trae`.
> **Deprecation 안내**: 기존 단일 클라이언트 플래그 (`--opencode`, `--claude`, `--codex` 등)는 하위 호환성을 위해 여전히 동작하지만 `--help`에서 숨겨졌으며 다음 메이저 릴리스에서 제거됩니다. 가능한 한 `--client`로 마이그레이션하세요. 인터랙티브 터미널에서 레거시 플래그를 사용하면 한 줄 경고가 출력됩니다.
@@ -536,7 +532,7 @@ Tokscale은 설정을 `~/.config/tokscale/settings.json`에 저장합니다:
| `autoRefreshEnabled` | boolean | `false` | TUI 자동 새로고침 활성화 |
| `autoRefreshMs` | number | `60000` | 자동 새로고침 간격 (30000-3600000ms) |
| `nativeTimeoutMs` | number | `300000` | 네이티브 서브프로세스 처리 최대 시간 (5000-3600000ms) |
-| `defaultClients` | string[] | `[]` | `--client/-c` 플래그를 전달하지 않을 때 적용되는 기본 클라이언트 필터. `--client`와 동일한 ID를 받습니다 (예: `["opencode", "claude", "synthetic"]`). 알 수 없는 ID는 자동으로 무시됩니다. CLI 플래그가 있으면 이 목록은 완전히 무시됩니다 — 병합되지 않습니다. |
+| `defaultClients` | string[] | `[]` | `--client/-c` 플래그를 전달하지 않을 때 적용되는 기본 클라이언트 필터. `--client`와 동일한 ID를 받습니다 (예: `["opencode", "claude", "zed"]`). 알 수 없는 ID는 자동으로 무시됩니다. CLI 플래그가 있으면 이 목록은 완전히 무시됩니다 — 병합되지 않습니다. |
| `light.writeCache` | boolean | `false` | `true`이면 `tokscale --light`가 렌더링 직후 TUI 캐시를 원자적으로 덮어씁니다. CLI 플래그 `--write-cache` / `--no-write-cache`가 실행별로 우선합니다. |
| `minutelyTabEnabled` | boolean | `false` | TUI에 분 단위 Minutely 탭을 표시하고 데이터 로딩 중에 분 단위 집계를 수행합니다. 대부분의 사용자에게 분 단위 세분화는 틈새/진단 뷰이며, 대규모 데이터셋에서는 분 단위 버케팅에 무시할 수 없는 비용이 들기 때문에 기본적으로 비활성화되어 있습니다. |
@@ -656,7 +652,7 @@ tokscale sources --json
- **인터랙티브 툴팁**: 호버 시 상세 일별 분석 표시
- **일별 분석 패널**: 클릭하여 소스별, 모델별 세부사항 확인
- **연도 필터링**: 연도 간 탐색
-- **소스 필터링**: 플랫폼별 필터 (OpenCode, Claude, Codex, Copilot, Cursor, Gemini, Amp, Codebuff, Droid, OpenClaw, Hermes Agent, Pi, OMP, Kimi, Qwen, Roo Code, Kilo, Mux, Kilo CLI, Crush, Goose, Antigravity, Zed, Kiro, Trae, Synthetic)
+- **소스 필터링**: 플랫폼별 필터 (OpenCode, Claude, Codex, Copilot, Cursor, Gemini, Amp, Codebuff, Droid, OpenClaw, Hermes Agent, Pi, OMP, Kimi, Qwen, Roo Code, Kilo, Mux, Kilo CLI, Crush, Goose, Antigravity, Zed, Kiro, Trae)
- **통계 패널**: 총 비용, 토큰, 활동 일수, 연속 기록
- **FOUC 방지**: React 하이드레이션 전 테마 적용 (깜빡임 없음)
@@ -968,7 +964,6 @@ AI 코딩 도구들은 크로스 플랫폼 위치에 세션 데이터를 저장
| Goose | `~/.local/share/goose/sessions/` (+ macOS Application Support, 레거시 Block 경로) | `%USERPROFILE%\.local\share\goose\sessions\` | `GOOSE_PATH_ROOT` 환경변수로 설정 가능 |
| Antigravity | `~/.config/tokscale/antigravity-cache/sessions/` | — | `tokscale antigravity sync`는 현재 macOS/Linux에서만 지원 |
| Trae | `~/.config/tokscale/trae-cache/sessions/` | `%APPDATA%\tokscale\trae-cache\sessions\` | `tokscale trae sync`로 한 번 동기화; 설치된 Trae IDE 또는 Trae Solo 데스크톱 앱에서 자격 증명 자동 발견 |
-| Synthetic | 다른 소스에서 재귀속 | 다른 소스에서 재귀속 | `hf:` 모델 접두사 + `synthetic` provider 감지 |
> **참고**: Windows에서 `~`는 `%USERPROFILE%`로 확장됩니다 (예: `C:\Users\사용자이름`). 이러한 도구들은 `%APPDATA%`와 같은 Windows 기본 경로 대신 크로스 플랫폼 일관성을 위해 의도적으로 Unix 스타일 경로(`.local/share` 등)를 사용합니다.
@@ -1292,12 +1287,6 @@ Goose는 세션별 사용량을 SQLite `sessions.db`에 저장합니다. Tokscal
Codebuff(이전 Manicode)는 채팅별 JSON 파일을 저장합니다. Tokscale은 `metadata.usage`, `metadata.codebuff.usage` 및 run-state의 `messageHistory[*].providerOptions` 폴백에서 토큰 사용량을 파싱하며, 부분적으로 갱신된 최신 항목이 실제 토큰 카운트를 가진 이전 항목을 가리지 않도록 히스토리를 역순으로 순회합니다. 메시지별 타임스탬프가 없을 때는 chat-id 디렉토리 이름, 마지막으로 파일 mtime으로 폴백합니다.
-### Synthetic (synthetic.new)
-
-Synthetic은 기존 에이전트 세션을 후처리하여 재귀속합니다. `hf:` 접두사 모델 ID 또는 `synthetic` / `glhf` / `octofriend` provider를 감지하면 해당 메시지를 `synthetic` 소스로 처리합니다.
-
-또한 `~/.local/share/octofriend/sqlite.db`를 감지해 토큰 정보가 있는 레코드를 파싱합니다.
-
## 가격
Tokscale은 [LiteLLM의 가격 데이터베이스](https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json)에서 실시간 가격을 가져옵니다.
diff --git a/README.md b/README.md
index c0be23316..b4e93e54f 100644
--- a/README.md
+++ b/README.md
@@ -81,7 +81,6 @@
| Warp/Oz | [Warp](https://www.warp.dev/) / Oz | Cached via `tokscale warp sync` to `~/.config/tokscale/warp-cache/usage.json` (aggregate requests and spend only; no token transcripts) | ✅ Yes |
|
| [Zed Agent](https://zed.dev/docs/ai/agent-panel) | `~/.local/share/zed/threads/threads.db` (macOS: `~/Library/Application Support/Zed/threads/threads.db`; Windows: `%LOCALAPPDATA%/Zed/threads/threads.db`; hosted Zed models only, not external ACP agents) | ✅ Yes |
| Kiro | Kiro | `~/.kiro/sessions/cli/*.json` (+ `*.jsonl`) and `~/.local/share/kiro-cli/data.sqlite3` (macOS: `~/Library/Application Support/kiro-cli/data.sqlite3`) | ✅ Yes |
-|
| [Synthetic](https://synthetic.new/) | Re-attributed from other sources via `hf:` model prefix or `synthetic` provider (+ [Octofriend](https://github.com/synthetic-lab/octofriend): `~/.local/share/octofriend/sqlite.db`) | ✅ Yes |
Get real-time pricing calculations using [🚅 LiteLLM's pricing data](https://github.com/BerriAI/litellm), with support for tiered pricing models and cache token discounts.
@@ -150,7 +149,7 @@ In the age of AI-assisted development, **tokens are the new energy**. They power
- GitHub-style contribution graph with 9 color themes
- Real-time filtering and sorting
- Zero flicker rendering
-- **Multi-platform support** - Track usage across OpenCode, Claude Code, Codex CLI, Copilot CLI, Cursor IDE, Gemini CLI, Amp, Codebuff, Droid, OpenClaw, Hermes Agent, Pi, OMP, Kimi CLI, Qwen CLI, Roo Code, Kilo, Mux, Kilo CLI, Crush, Goose, Antigravity, Zed, Kiro, Trae, and Synthetic
+- **Multi-platform support** - Track usage across OpenCode, Claude Code, Codex CLI, Copilot CLI, Cursor IDE, Gemini CLI, Amp, Codebuff, Droid, OpenClaw, Hermes Agent, Pi, OMP, Kimi CLI, Qwen CLI, Roo Code, Kilo, Mux, Kilo CLI, Crush, Goose, Antigravity, Zed, Kiro, and Trae
- **Real-time pricing** - Fetches current pricing from LiteLLM with 1-hour disk cache; automatic OpenRouter fallback and Cursor model pricing for newly released models
- **Detailed breakdowns** - Input, output, cache read/write, and reasoning token tracking
- **Native Rust core** - All parsing and aggregation done in Rust for 10x faster processing
@@ -353,14 +352,11 @@ tokscale -c opencode -c claude
# Cursor IDE uses Tokscale's API cache; run login + sync --json first
tokscale --client cursor
-# Synthetic (synthetic.new) is detected from other agent sessions
-tokscale --client synthetic
-
# Combine with other filters
tokscale --client opencode,claude --week --json
```
-Possible values: `opencode`, `claude`, `codex`, `copilot`, `gemini`, `cursor`, `amp`, `codebuff`, `droid`, `openclaw`, `hermes`, `pi`, `omp`, `kimi`, `qwen`, `roocode`, `kilocode`, `kilo`, `mux`, `crush`, `goose`, `antigravity`, `zed`, `kiro`, `trae`, `synthetic`.
+Possible values: `opencode`, `claude`, `codex`, `copilot`, `gemini`, `cursor`, `amp`, `codebuff`, `droid`, `openclaw`, `hermes`, `pi`, `omp`, `kimi`, `qwen`, `roocode`, `kilocode`, `kilo`, `mux`, `crush`, `goose`, `antigravity`, `zed`, `kiro`, `trae`.
> **Deprecation notice**: The legacy single-client flags (`--opencode`, `--claude`, `--codex`, etc.) still work for backward compatibility but are hidden from `--help` and will be removed in the next major release. Migrate to `--client` whenever possible. Running tokscale in an interactive terminal will print a one-line warning when a legacy flag is used.
@@ -449,7 +445,7 @@ Create `custom-pricing.json` in Tokscale's config directory (`~/.config/tokscale
Override prices are entered in dollars per million tokens, matching how most API providers publish pricing; Tokscale converts them to per-token rates internally. At least one of `input_cost_per_million_tokens` or `output_cost_per_million_tokens` must be present and positive, and cache-read/cache-creation fields are optional. LiteLLM-style per-token field names such as `input_cost_per_token`, `output_cost_per_token`, and `cache_read_input_token_cost` are also accepted for copy/paste compatibility, but the per-million names are the recommended user-facing form. To omit a tier or cache price, leave the field out; negative or non-finite values are treated as invalid and the whole model entry is skipped so typos do not silently alter accounting. Optional `source` and `notes` fields are ignored by Tokscale and can be used for your own bookkeeping.
-Overrides are exact-only and case-insensitive. Tokscale checks the raw model ID first, then the existing synthetic `/models/` normalization, then falls through to LiteLLM, OpenRouter, Cursor pricing, and fuzzy matching if no override matches. Raw exact matches beat normalized exact matches, so `accounts/fireworks/routers/kimi-k2p6-turbo` can override one gateway-specific model while `kimi-k2p6-turbo` can cover normalized `/models/` paths. Overrides are loaded once at startup; restart the command after editing the file. This is the recommended local fix for wrong-model pricing bugs while waiting on upstream LiteLLM pricing updates.
+Overrides are exact-only and case-insensitive. Tokscale checks the raw model ID first, then gateway `/models/` path normalization, then falls through to LiteLLM, OpenRouter, Cursor pricing, and fuzzy matching if no override matches. Raw exact matches beat normalized exact matches, so `accounts/fireworks/routers/kimi-k2p6-turbo` can override one gateway-specific model while `kimi-k2p6-turbo` can cover normalized `/models/` paths. Overrides are loaded once at startup; restart the command after editing the file. This is the recommended local fix for wrong-model pricing bugs while waiting on upstream LiteLLM pricing updates.
**Provider Preference:**
@@ -723,7 +719,7 @@ Tokscale stores settings in `~/.config/tokscale/settings.json`:
| `autoRefreshEnabled` | boolean | `false` | Enable auto-refresh in TUI |
| `autoRefreshMs` | number | `60000` | Auto-refresh interval (30000-3600000ms) |
| `nativeTimeoutMs` | number | `300000` | Maximum time for native subprocess processing (5000-3600000ms) |
-| `defaultClients` | string[] | `[]` | Client filter applied when no `--client/-c` flag is passed. Accepts the same ids as `--client` (e.g. `["opencode", "claude", "synthetic"]`). Unknown ids are silently dropped. CLI flags always override this list completely — no merging. |
+| `defaultClients` | string[] | `[]` | Client filter applied when no `--client/-c` flag is passed. Accepts the same ids as `--client` (e.g. `["opencode", "claude", "zed"]`). Unknown ids are silently dropped. CLI flags always override this list completely — no merging. |
| `light.writeCache` | boolean | `false` | When true, `tokscale --light` overwrites the TUI cache atomically after rendering. CLI flags `--write-cache` / `--no-write-cache` override per-invocation. |
| `usageTabEnabled` | boolean | `false` | Show the subscription quota Usage tab in the TUI. Default-off because local token usage is the primary TUI workflow and subscription lookups are optional. |
| `minutelyTabEnabled` | boolean | `false` | Show the per-minute Minutely tab in the TUI and aggregate per-minute usage during data loading. Default-off because minute-granularity is a niche/diagnostic view for most users and the per-minute bucketing has a non-trivial cost on large datasets. |
@@ -857,7 +853,7 @@ The frontend provides a GitHub-style contribution graph visualization:
- **Interactive tooltips**: Hover for detailed daily breakdowns
- **Day breakdown panel**: Click to see per-source and per-model details
- **Year filtering**: Navigate between years
-- **Source filtering**: Filter by platform (OpenCode, Claude, Codex, Copilot, Cursor, Gemini, Amp, Codebuff, Droid, OpenClaw, Hermes Agent, Pi, OMP, Kimi, Qwen, Roo Code, Kilo, Mux, Kilo CLI, Crush, Goose, Antigravity, Zed, Kiro, Trae, Synthetic)
+- **Source filtering**: Filter by platform (OpenCode, Claude, Codex, Copilot, Cursor, Gemini, Amp, Codebuff, Droid, OpenClaw, Hermes Agent, Pi, OMP, Kimi, Qwen, Roo Code, Kilo, Mux, Kilo CLI, Crush, Goose, Antigravity, Zed, Kiro, Trae)
- **Stats panel**: Total cost, tokens, active days, streaks
- **FOUC prevention**: Theme applied before React hydrates (no flash)
@@ -1188,7 +1184,6 @@ AI coding tools store their session data in cross-platform locations. Most tools
| Kiro | `~/.kiro/sessions/cli/` and `~/.local/share/kiro-cli/data.sqlite3` | `%USERPROFILE%\.kiro\sessions\cli\` and `%USERPROFILE%\.local\share\kiro-cli\data.sqlite3` | Parses Kiro session files plus the Kiro CLI SQLite database when present |
| Trae | `~/.config/tokscale/trae-cache/sessions/` | `%APPDATA%\tokscale\trae-cache\sessions\` | Synced once via `tokscale trae sync`; credentials are auto-discovered from any installed Trae IDE or Trae Solo desktop app |
| Warp/Oz | `~/.config/tokscale/warp-cache/usage.json` | `%APPDATA%\tokscale\warp-cache\usage.json` | Synced via `tokscale warp sync`; aggregate requests and spend only, no token transcripts |
-| Synthetic | Re-attributed from other sources | Re-attributed from other sources | Detects `hf:` model prefix + `synthetic` provider |
> **Note**: On Windows, `~` expands to `%USERPROFILE%` (e.g., `C:\Users\YourName`). These tools intentionally use Unix-style paths (like `.local/share`) even on Windows for cross-platform consistency, rather than Windows-native paths like `%APPDATA%`.
@@ -1561,12 +1556,6 @@ Location: `~/.config/manicode/projects//chats//chat-messages.js
Codebuff (formerly Manicode) writes per-chat JSON files. Tokscale parses token usage from `metadata.usage`, `metadata.codebuff.usage`, and the run-state `messageHistory[*].providerOptions` fallback, walking the history in reverse so partial newer entries don't shadow earlier entries that carry the actual token counts. Per-message timestamps fall back to the chat-id directory name and finally to file mtime when missing.
-### Synthetic (synthetic.new)
-
-Synthetic usage is detected via post-processing of existing agent session files. Messages are re-attributed to `synthetic` when they use `hf:` model IDs or synthetic providers (`synthetic`, `glhf`, `octofriend`).
-
-Tokscale also checks Octofriend SQLite at `~/.local/share/octofriend/sqlite.db` and parses token-bearing records when available.
-
## Pricing
Tokscale fetches real-time pricing from [LiteLLM's pricing database](https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json).
diff --git a/README.zh-cn.md b/README.zh-cn.md
index 6348eba3a..8de94a5fd 100644
--- a/README.zh-cn.md
+++ b/README.zh-cn.md
@@ -79,7 +79,6 @@
|
| [Trae IDE](https://www.trae.ai/) / [Trae Solo](https://www.trae.ai/solo)(国际版) | 通过 `tokscale trae sync` 缓存到 `~/.config/tokscale/trae-cache/sessions/*.json`(来自官方 API 的账号级使用量) | ✅ 支持 |
|
| [Zed Agent](https://zed.dev/docs/ai/agent-panel) | `~/.local/share/zed/threads/threads.db`(macOS: `~/Library/Application Support/Zed/threads/threads.db`;Windows: `%LOCALAPPDATA%/Zed/threads/threads.db`;仅限托管 Zed 模型,不含外部 ACP 代理) | ✅ 支持 |
| Kiro | Kiro | `~/.kiro/sessions/cli/*.json`(+ `*.jsonl`)和 `~/.local/share/kiro-cli/data.sqlite3`(macOS: `~/Library/Application Support/kiro-cli/data.sqlite3`) | ✅ 支持 |
-|
| [Synthetic](https://synthetic.new/) | 通过 `hf:` 模型前缀或 `synthetic` provider 从其他来源重归属(+ [Octofriend](https://github.com/synthetic-lab/octofriend): `~/.local/share/octofriend/sqlite.db`) | ✅ 支持 |
使用 [🚅 LiteLLM 的价格数据](https://github.com/BerriAI/litellm)提供实时价格计算,支持分层定价模型和缓存 Token 折扣。
@@ -147,7 +146,7 @@
- 9 种颜色主题的 GitHub 风格贡献图
- 实时筛选和排序
- 零闪烁渲染
-- **多平台支持** - 跟踪 OpenCode、Claude Code、Codex CLI、Copilot CLI、Cursor IDE、Gemini CLI、Amp、Codebuff、Droid、OpenClaw、Hermes Agent、Pi、OMP、Kimi CLI、Qwen CLI、Roo Code、Kilo、Mux、Kilo CLI、Crush、Goose、Antigravity、Zed、Kiro、Trae 和 Synthetic 的使用情况
+- **多平台支持** - 跟踪 OpenCode、Claude Code、Codex CLI、Copilot CLI、Cursor IDE、Gemini CLI、Amp、Codebuff、Droid、OpenClaw、Hermes Agent、Pi、OMP、Kimi CLI、Qwen CLI、Roo Code、Kilo、Mux、Kilo CLI、Crush、Goose、Antigravity、Zed、Kiro 和 Trae 的使用情况
- **实时定价** - 从 LiteLLM 获取当前价格,带 1 小时磁盘缓存;OpenRouter 自动回退和新模型的 Cursor 定价支持
- **详细分解** - 输入、输出、缓存读写和推理 Token 跟踪
- **原生 Rust 核心** - 所有解析和聚合在 Rust 中完成,处理速度提升 10 倍
@@ -324,14 +323,11 @@ tokscale -c opencode -c claude
# Cursor IDE 需要先运行 `tokscale cursor login`
tokscale --client cursor
-# Synthetic(synthetic.new)从其他 agent 会话中检测
-tokscale --client synthetic
-
# 与其他筛选条件组合
tokscale --client opencode,claude --week --json
```
-可用值:`opencode`、`claude`、`codex`、`copilot`、`gemini`、`cursor`、`amp`、`codebuff`、`droid`、`openclaw`、`hermes`、`pi`、`omp`、`kimi`、`qwen`、`roocode`、`kilocode`、`kilo`、`mux`、`crush`、`goose`、`antigravity`、`zed`、`kiro`、`trae`、`synthetic`。
+可用值:`opencode`、`claude`、`codex`、`copilot`、`gemini`、`cursor`、`amp`、`codebuff`、`droid`、`openclaw`、`hermes`、`pi`、`omp`、`kimi`、`qwen`、`roocode`、`kilocode`、`kilo`、`mux`、`crush`、`goose`、`antigravity`、`zed`、`kiro`、`trae`。
> **弃用通知**:旧的单客户端选项(`--opencode`、`--claude`、`--codex` 等)出于向后兼容仍然可用,但已从 `--help` 中隐藏,将在下一个主要版本中移除。请尽量迁移到 `--client`。在交互式终端中使用旧选项时会输出一行警告。
@@ -567,7 +563,7 @@ Tokscale 将设置存储在 `~/.config/tokscale/settings.json`:
| `autoRefreshEnabled` | boolean | `false` | 在 TUI 中启用自动刷新 |
| `autoRefreshMs` | number | `60000` | 自动刷新间隔(30000-3600000ms) |
| `nativeTimeoutMs` | number | `300000` | 原生子进程处理最大时间(5000-3600000ms) |
-| `defaultClients` | string[] | `[]` | 未传递 `--client/-c` 选项时应用的客户端筛选。接受与 `--client` 相同的 ID(例如 `["opencode", "claude", "synthetic"]`)。未知 ID 会被静默丢弃。命令行选项会完全覆盖此列表 — 不会合并。 |
+| `defaultClients` | string[] | `[]` | 未传递 `--client/-c` 选项时应用的客户端筛选。接受与 `--client` 相同的 ID(例如 `["opencode", "claude", "zed"]`)。未知 ID 会被静默丢弃。命令行选项会完全覆盖此列表 — 不会合并。 |
| `light.writeCache` | boolean | `false` | 为 `true` 时,`tokscale --light` 会在渲染完成后以原子方式覆盖 TUI 缓存。CLI 标志 `--write-cache` / `--no-write-cache` 会按次运行覆盖该设置。 |
| `usageTabEnabled` | boolean | `false` | 在 TUI 中显示订阅额度 Usage 标签。默认关闭,因为本地 Token 使用统计是主要 TUI 工作流,订阅额度查询是可选功能。 |
| `minutelyTabEnabled` | boolean | `false` | 在 TUI 中显示按分钟的 Minutely 标签,并在数据加载期间执行分钟级聚合。对大多数用户而言,分钟级粒度是较为小众的诊断视图,而在大数据集上分钟分桶有非平凡的代价,因此默认关闭。 |
@@ -702,7 +698,7 @@ tokscale sources --json
- **交互式提示**:悬停查看详细的每日分解
- **每日分解面板**:点击查看每个来源和模型的详情
- **年份筛选**:在年份之间导航
-- **来源筛选**:按平台筛选(OpenCode、Claude、Codex、Copilot、Cursor、Gemini、Amp、Codebuff、Droid、OpenClaw、Hermes Agent、Pi、OMP、Kimi、Qwen、Roo Code、Kilo、Mux、Kilo CLI、Crush、Goose、Antigravity、Zed、Kiro、Trae、Synthetic)
+- **来源筛选**:按平台筛选(OpenCode、Claude、Codex、Copilot、Cursor、Gemini、Amp、Codebuff、Droid、OpenClaw、Hermes Agent、Pi、OMP、Kimi、Qwen、Roo Code、Kilo、Mux、Kilo CLI、Crush、Goose、Antigravity、Zed、Kiro、Trae)
- **统计面板**:总成本、Token、活跃天数、连续记录
- **FOUC 防护**:在 React 水合前应用主题(无闪烁)
@@ -1014,7 +1010,6 @@ AI 编程工具将会话数据存储在跨平台位置。大多数工具在所
| Goose | `~/.local/share/goose/sessions/`(+ macOS Application Support、旧版 Block 路径) | `%USERPROFILE%\.local\share\goose\sessions\` | 可通过 `GOOSE_PATH_ROOT` 环境变量配置 |
| Antigravity | `~/.config/tokscale/antigravity-cache/sessions/` | — | `tokscale antigravity sync` 目前仅支持 macOS / Linux |
| Trae | `~/.config/tokscale/trae-cache/sessions/` | `%APPDATA%\tokscale\trae-cache\sessions\` | 通过 `tokscale trae sync` 同步一次;凭据会从已安装的任意 Trae IDE 或 Trae Solo 桌面端自动发现 |
-| Synthetic | 从其他来源重归属 | 从其他来源重归属 | 检测 `hf:` 模型前缀 + `synthetic` provider |
> **注意**:在 Windows 上,`~` 扩展为 `%USERPROFILE%`(例如 `C:\Users\用户名`)。这些工具故意使用 Unix 风格的路径(如 `.local/share`)而不是 Windows 原生路径(如 `%APPDATA%`),以实现跨平台一致性。
@@ -1338,12 +1333,6 @@ Goose 在 SQLite 的 `sessions.db` 中按会话保存使用量。Tokscale 从 `m
Codebuff(前身 Manicode)按聊天写入 JSON 文件。Tokscale 从 `metadata.usage`、`metadata.codebuff.usage` 以及 run-state 中的 `messageHistory[*].providerOptions` 回退路径解析 Token 使用量,并以反向顺序遍历历史,避免部分更新的较新条目遮蔽实际承载 Token 数的较早条目。当消息时间戳缺失时,会回退到 chat-id 目录名,最后回退到文件 mtime。
-### Synthetic (synthetic.new)
-
-Synthetic 通过后处理重归属其他来源的消息。当检测到 `hf:` 前缀模型 ID 或 `synthetic` / `glhf` / `octofriend` provider 时,消息会被归类为 `synthetic` 来源。
-
-Tokscale 还会检测 `~/.local/share/octofriend/sqlite.db`,并在可用时解析包含 token 数据的记录。
-
## 定价
Tokscale 从 [LiteLLM 的价格数据库](https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json)获取实时价格。
diff --git a/crates/tokscale-cli/src/commands/wrapped.rs b/crates/tokscale-cli/src/commands/wrapped.rs
index 80dbdd1eb..a75dda20e 100644
--- a/crates/tokscale-cli/src/commands/wrapped.rs
+++ b/crates/tokscale-cli/src/commands/wrapped.rs
@@ -1454,7 +1454,6 @@ fn client_display_name(client: &str) -> Option<&'static str> {
"antigravity" => Some("Antigravity"),
"zed" => Some("Zed Agent"),
"warp" => Some("Warp"),
- "synthetic" => Some("Synthetic"),
_ => None,
}
}
@@ -1497,7 +1496,6 @@ fn client_logo_url(client_name: &str) -> Option<&'static str> {
"Zed Agent" => Some(
"https://raw.githubusercontent.com/junhoyeo/tokscale/main/.github/assets/client-zed.webp",
),
- "Synthetic" => Some("https://tokscale.ai/assets/logos/synthetic.png"),
_ => None,
}
}
diff --git a/crates/tokscale-cli/src/main.rs b/crates/tokscale-cli/src/main.rs
index 3636fbd8b..49f033cad 100644
--- a/crates/tokscale-cli/src/main.rs
+++ b/crates/tokscale-cli/src/main.rs
@@ -453,7 +453,7 @@ fn main() -> Result<()> {
let month = date.month;
let (since, until) = build_date_filter(today, week, month, date.since, date.until);
let year = normalize_year_filter(today, week, month, date.year);
- let clients = build_client_filter(clients, &cli.home);
+ let clients = build_client_filter(clients, &cli.home)?;
if json || light || !can_use_tui {
run_models_report(
json,
@@ -499,7 +499,7 @@ fn main() -> Result<()> {
let month = date.month;
let (since, until) = build_date_filter(today, week, month, date.since, date.until);
let year = normalize_year_filter(today, week, month, date.year);
- let clients = build_client_filter(clients, &cli.home);
+ let clients = build_client_filter(clients, &cli.home)?;
if json || light || !can_use_tui {
run_monthly_report(
json,
@@ -542,7 +542,7 @@ fn main() -> Result<()> {
let month = date.month;
let (since, until) = build_date_filter(today, week, month, date.since, date.until);
let year = normalize_year_filter(today, week, month, date.year);
- let clients = build_client_filter(clients, &cli.home);
+ let clients = build_client_filter(clients, &cli.home)?;
if json || light || !can_use_tui {
run_hourly_report(
json,
@@ -610,7 +610,7 @@ fn main() -> Result<()> {
let month = date.month;
let (since, until) = build_date_filter(today, week, month, date.since, date.until);
let year = normalize_year_filter(today, week, month, date.year);
- let clients = build_client_filter(clients, &cli.home);
+ let clients = build_client_filter(clients, &cli.home)?;
run_graph_command(
output,
cli.home.clone(),
@@ -629,7 +629,7 @@ fn main() -> Result<()> {
let month = date.month;
let (since, until) = build_date_filter(today, week, month, date.since, date.until);
let year = normalize_year_filter(today, week, month, date.year);
- let clients = build_client_filter(clients, &cli.home);
+ let clients = build_client_filter(clients, &cli.home)?;
auto_sync_cursor_before_tui(&cli.home, &clients)?;
tui::run(
&cli.theme,
@@ -658,7 +658,7 @@ fn main() -> Result<()> {
// to fire when the user passes no client flags, not the user's general
// defaultClients view filter (which may exclude clients they still want
// to upload). Pass an explicit empty defaults slice.
- let clients = build_client_filter_with_defaults(clients, &[]);
+ let clients = build_client_filter_with_defaults(clients, &[])?;
run_submit_command(clients, since, until, year, dry_run)
}
Some(Commands::Headless {
@@ -682,7 +682,7 @@ fn main() -> Result<()> {
no_spinner: _,
}) => {
reject_unsupported_home_override(&cli.home, "wrapped")?;
- let client_filter = build_client_filter(client_flags, &cli.home);
+ let client_filter = build_client_filter(client_flags, &cli.home)?;
run_wrapped_command(
output,
year,
@@ -728,7 +728,7 @@ fn main() -> Result<()> {
let month = date.month;
let (since, until) = build_date_filter(today, week, month, date.since, date.until);
let year = normalize_year_filter(today, week, month, date.year);
- let clients = build_client_filter(clients, &cli.home);
+ let clients = build_client_filter(clients, &cli.home)?;
run_time_metrics_report(
json,
cli.home.clone(),
@@ -744,7 +744,7 @@ fn main() -> Result<()> {
let today = cli.date.today;
let week = cli.date.week;
let month = cli.date.month;
- let clients = build_client_filter(cli.clients, &cli.home);
+ let clients = build_client_filter(cli.clients, &cli.home)?;
let (since, until) =
build_date_filter(today, week, month, cli.date.since, cli.date.until);
let year = normalize_year_filter(today, week, month, cli.date.year);
@@ -807,17 +807,13 @@ fn main() -> Result<()> {
/// Client identifiers exposed via `--client`.
///
-/// Mirrors `tokscale_core::ClientId` plus the `Synthetic` meta-client. We
-/// duplicate the variant set on the CLI side so `tokscale-core` stays free of
-/// CLI-parsing dependencies and so `Synthetic` (which has no scan path of its
-/// own) can be treated as a first-class filter value without changing core
-/// invariants.
+/// Mirrors `tokscale_core::ClientId`. We duplicate the variant set on the CLI
+/// side so `tokscale-core` stays free of CLI-parsing dependencies.
///
/// Variant order intentionally mirrors `ClientId::ALL` declaration order so
/// the TUI source picker, `--help`'s `[possible values: ...]` listing, and
/// any future iteration over `ClientFilter::value_variants()` agree on a
-/// single chronological ordering. `Synthetic` is appended at the end since
-/// it has no `ClientId` counterpart.
+/// single chronological ordering.
#[derive(ValueEnum, Clone, Copy, Debug, PartialEq, Eq, Hash)]
#[value(rename_all = "lowercase")]
pub enum ClientFilter {
@@ -848,7 +844,6 @@ pub enum ClientFilter {
#[value(name = "trae")]
Trae,
Warp,
- Synthetic,
}
impl ClientFilter {
@@ -883,12 +878,10 @@ impl ClientFilter {
Self::Kiro => "kiro",
Self::Trae => "trae",
Self::Warp => "warp",
- Self::Synthetic => "synthetic",
}
}
- /// Convert to the corresponding `ClientId`, or `None` for the
- /// `Synthetic` meta-client which has no scan path of its own.
+ /// Convert to the corresponding `ClientId`.
///
/// Used at boundaries where TUI state (`HashSet`) needs
/// to feed core APIs that still consume `Vec`.
@@ -921,12 +914,11 @@ impl ClientFilter {
Self::Kiro => Some(ClientId::Kiro),
Self::Trae => Some(ClientId::Trae),
Self::Warp => Some(ClientId::Warp),
- Self::Synthetic => None,
}
}
/// Lift a `ClientId` back into a `ClientFilter`. Total inverse of
- /// `to_client_id` for non-`Synthetic` variants.
+ /// `to_client_id`.
pub fn from_client_id(client: tokscale_core::ClientId) -> Self {
use tokscale_core::ClientId;
match client {
@@ -961,8 +953,8 @@ impl ClientFilter {
/// Parse a canonical lowercase identifier (the same form
/// `as_filter_str` returns) into a `ClientFilter`. Returns `None` for
- /// any unknown id so callers can drop unrecognized settings entries
- /// without erroring.
+ /// any unknown id; callers decide whether unknown input is a user-facing
+ /// configuration error or already-validated CLI data.
pub fn from_filter_str(s: &str) -> Option {
Self::value_variants()
.iter()
@@ -970,23 +962,13 @@ impl ClientFilter {
.find(|f| f.as_filter_str() == s)
}
- /// The "no filter" default set: every real client, with `Synthetic`
- /// **excluded**. Matches the pre-refactor behavior where a missing
- /// filter scanned every `ClientId` but did NOT post-process synthetic
- /// (synthetic detection has always been opt-in because it
- /// re-attributes messages from other clients to a different bucket).
- ///
/// Single source of truth: every code path that needs a default
/// filter (TUI launch, `submit` warm cache, etc.) must consult this
/// so the cache key, the in-app state, and the loader filter all
/// agree. Drift between them produces stale-cache misses on every
/// launch.
pub fn default_set() -> std::collections::HashSet {
- Self::value_variants()
- .iter()
- .copied()
- .filter(|f| !matches!(f, Self::Synthetic))
- .collect()
+ Self::value_variants().iter().copied().collect()
}
}
@@ -1058,8 +1040,6 @@ pub struct ClientFlags {
pub trae: bool,
#[arg(long, hide = true)]
pub warp: bool,
- #[arg(long, hide = true)]
- pub synthetic: bool,
}
#[derive(Args, Clone, Debug, Default)]
@@ -1090,18 +1070,21 @@ pub struct DateRangeFlags {
///
/// Returns `None` when no filters are active *and* no defaults configured
/// so the caller can scan all clients.
-fn build_client_filter(flags: ClientFlags, home_dir: &Option) -> Option> {
+fn build_client_filter(
+ flags: ClientFlags,
+ home_dir: &Option,
+) -> Result