From 25bd54404c85abb232d2dc3e205075604f92a572 Mon Sep 17 00:00:00 2001 From: AgentSeal Date: Tue, 14 Apr 2026 04:35:51 -0700 Subject: [PATCH] bump to 0.4.0: multi-provider support (Codex, provider plugin system) --- CHANGELOG.md | 24 ++++++++++++++++++++++++ package.json | 2 +- src/cli.ts | 2 +- 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6185d5..3b07be6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## 0.4.0 - 2026-04-14 + +### Added +- Codex (OpenAI) support. Parses sessions from ~/.codex/sessions/ with full + token tracking, cost calculation, task classification, and tool breakdown. +- Provider plugin system. Adding a new provider (Pi, OpenCode, Amp) is a + single file in src/providers/. +- TUI provider toggle. Press p to cycle All / Claude / Codex. Auto-detects + which providers have session data on disk. Hidden when only one is present. +- --provider flag on all CLI commands: report, today, month, status, export. + Values: all (default), claude, codex. +- Codex tool normalization: exec_command -> Bash, read_file -> Read, + write_file/apply_diff/apply_patch -> Edit, spawn_agent -> Agent. +- Codex model pricing: gpt-5, gpt-5.3-codex, gpt-5.4, gpt-5.4-mini with + hardcoded fallbacks to prevent LiteLLM fuzzy matching mispricing. +- CODEX_HOME environment variable support for custom Codex data directories. +- Menubar per-provider cost breakdown when multiple providers have data. +- 1-minute in-memory cache with LRU eviction for instant provider switching. +- 10 new tests (Codex parser, provider registry, tool/model mapping). + +### Fixed +- Model name fuzzy matching: gpt-5.4-mini no longer mispriced as gpt-5 + (more specific prefixes checked first). + ## 0.3.1 - 2026-04-14 ### Added diff --git a/package.json b/package.json index 45e4630..7b94169 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codeburn", - "version": "0.3.1", + "version": "0.4.0", "description": "See where your AI coding tokens go - by task, tool, model, and project", "type": "module", "main": "./dist/cli.js", diff --git a/src/cli.ts b/src/cli.ts index 0967808..f2ab0a6 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -49,7 +49,7 @@ function toPeriod(s: string): 'today' | 'week' | 'month' { const program = new Command() .name('codeburn') .description('See where your AI coding tokens go - by task, tool, model, and project') - .version('0.3.1') + .version('0.4.0') program .command('report', { isDefault: true })