co-mono/packages/coding-agent/test
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
..
fixtures WIP: Context compaction core logic (#92) 2025-12-04 00:07:53 +01:00
compaction.test.ts Add totalTokens field to Usage type 2025-12-06 22:46:02 +01:00
rpc-example.ts Add session export to HTML, improve tool error handling, and enhance RPC mode documentation 2025-11-12 21:55:10 +01:00
rpc.test.ts feat(coding-agent): add auto-compaction to RPC mode, add RPC compaction test 2025-12-04 02:49:22 +01:00
test-theme-colors.ts Release v0.8.0 2025-11-21 03:12:42 +01:00
tools.test.ts Add CI workflow and fix workspace tests 2025-12-02 12:53:53 +00:00
truncate-to-width.test.ts fix: TUI crash with Unicode characters in branch selector 2025-12-05 11:59:39 +01:00