co-mono/packages/coding-agent/src
Mario Zechner 86e5a70ec4 Add totalTokens field to Usage type
- Added totalTokens field to Usage interface in pi-ai
- Anthropic: computed as input + output + cacheRead + cacheWrite
- OpenAI/Google: uses native total_tokens/totalTokenCount
- Fixed openai-completions to compute totalTokens when reasoning tokens present
- Updated calculateContextTokens() to use totalTokens field
- Added comprehensive test covering 13 providers

fixes #130
2025-12-06 22:46:02 +01:00
..
oauth feat(coding-agent): configurable app name and config dir for forks (#95) 2025-12-03 16:18:59 +01:00
theme feat(coding-agent): configurable app name and config dir for forks (#95) 2025-12-03 16:18:59 +01:00
tools feat(coding-agent): add read-only exploration tools (grep, find, ls) and --tools flag 2025-11-29 00:59:23 +01:00
tui Release v0.12.14 2025-12-06 00:46:57 +01:00
changelog.ts feat(coding-agent): configurable app name and config dir for forks (#95) 2025-12-03 16:18:59 +01:00
cli.ts Suppress punycode deprecation warning from dependencies 2025-11-11 20:32:49 +01:00
clipboard.ts add cross-platform clipboard support and /copy command 2025-12-04 09:16:11 +02:00
compaction.ts Add totalTokens field to Usage type 2025-12-06 22:46:02 +01:00
config.ts Fix Windows binary detection for Bun compiled executables 2025-12-06 22:42:47 +01:00
export-html.ts feat(coding-agent): context compaction with /compact, /autocompact, and auto-trigger 2025-12-04 02:39:54 +01:00
fuzzy.test.ts Implement fuzzy search for model/session selector and improve Input multi-key sequence handling (#122) 2025-12-05 20:33:04 +01:00
fuzzy.ts Implement fuzzy search for model/session selector and improve Input multi-key sequence handling (#122) 2025-12-05 20:33:04 +01:00
index.ts Agent package + coding agent WIP, refactored web-ui prompts 2025-10-17 11:47:01 +02:00
main.ts Run version check in parallel with TUI startup 2025-12-05 23:36:06 +01:00
model-config.ts Add authHeader option and fix print mode error handling 2025-12-05 11:31:14 +01:00
session-manager.ts feat(coding-agent): context compaction with /compact, /autocompact, and auto-trigger 2025-12-04 02:39:54 +01:00
settings-manager.ts allow toggling visibility of the assistant's thinking block 2025-12-05 09:43:09 +02:00
slash-commands.ts feat(coding-agent): configurable app name and config dir for forks (#95) 2025-12-03 16:18:59 +01:00
tools-manager.ts fix(coding-agent): use APP_NAME in export-html and tools-manager 2025-12-03 16:27:49 +01:00