co-mono/packages/web-ui/src/components
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
..
sandbox Add lifecycle callbacks to SandboxRuntimeProvider for abort signal support 2025-11-16 00:56:20 +01:00
AgentInterface.ts Add totalTokens field to Usage type 2025-12-06 22:46:02 +01:00
AttachmentTile.ts Fix Lit dependency duplication and update mini-lit to 0.2.0 2025-11-12 16:03:43 +01:00
ConsoleBlock.ts Fix Lit dependency duplication and update mini-lit to 0.2.0 2025-11-12 16:03:43 +01:00
CustomProviderCard.ts Fix Lit dependency duplication and update mini-lit to 0.2.0 2025-11-12 16:03:43 +01:00
ExpandableSection.ts Refactor artifacts renderer and add Console component 2025-10-08 01:54:50 +02:00
Input.ts Fix Lit dependency duplication and update mini-lit to 0.2.0 2025-11-12 16:03:43 +01:00
message-renderer-registry.ts Add custom message extension system with typed renderers and message transformer 2025-10-06 13:45:08 +02:00
MessageEditor.ts Fix Lit dependency duplication and update mini-lit to 0.2.0 2025-11-12 16:03:43 +01:00
MessageList.ts Fix Lit dependency duplication and update mini-lit to 0.2.0 2025-11-12 16:03:43 +01:00
Messages.ts Fix Lit dependency duplication and update mini-lit to 0.2.0 2025-11-12 16:03:43 +01:00
ProviderKeyInput.ts Fix Lit dependency duplication and update mini-lit to 0.2.0 2025-11-12 16:03:43 +01:00
SandboxedIframe.ts Add lifecycle callbacks to SandboxRuntimeProvider for abort signal support 2025-11-16 00:56:20 +01:00
StreamingMessageContainer.ts Fix Lit dependency duplication and update mini-lit to 0.2.0 2025-11-12 16:03:43 +01:00
ThinkingBlock.ts Improve web-ui message and tool UX 2025-10-30 20:42:04 +01:00