Files
opencode/packages
Kit Langton f5d199db62 feat(llm): add Usage.totalInputTokens / totalOutputTokens getters
Match the `LLMResponse.text` / `reasoning` / `toolCalls` getter pattern
in the same file — `usage.totalInputTokens` reads naturally and lives
where the Usage data does. Both sums are monotonic under the additive
contract, so callers no longer need to remember which fields are
non-overlapping.

Test fixtures that previously asserted with `usage: { ... }` plain
literals are now wrapped with `new Usage({...})` to match the runtime
shape the mappers actually produce (an instance, not a struct).
2026-05-10 19:29:41 -04:00
..
2026-05-10 02:34:36 +00:00
2026-05-10 12:14:11 -04:00
2026-05-10 02:34:36 +00:00
2026-05-10 16:44:40 +00:00
2026-05-10 02:34:36 +00:00
2026-05-10 16:22:29 +00:00
2026-05-10 02:34:36 +00:00
2026-05-10 02:34:36 +00:00
2026-05-10 03:51:34 -04:00