opencode/packages/llm
Kit Langton 0d4f8d126f refactor(llm): drop Usage.totalInput / totalOutput helpers
The additive contract delivers value at the mapper boundary — every
field is non-overlapping and non-negative, so any caller summing
arbitrary subsets is correct by construction. Two-line helpers that
just sum three or two known fields add API surface without paying for
themselves, and there are no in-tree consumers today. If v2 wants them
at integration time, the right place is a getter on the `Schema.Class`
(matching the `LLMResponse.text` / `reasoning` / `toolCalls` pattern in
the same file), not a static namespace helper.
2026-05-10 19:15:46 -04:00
..
example Add explicit LLM stream lifecycle events (#26722) 2026-05-10 12:19:13 -04:00
script chore: generate 2026-05-08 20:57:36 +00:00
src refactor(llm): drop Usage.totalInput / totalOutput helpers 2026-05-10 19:15:46 -04:00
test refactor(llm): drop Usage.totalInput / totalOutput helpers 2026-05-10 19:15:46 -04:00
AGENTS.md chore: generate 2026-05-08 20:57:36 +00:00
package.json sync release versions for v1.14.46 2026-05-10 02:34:36 +00:00
sst-env.d.ts sync 2026-05-10 02:17:32 -04:00
tsconfig.json Add native LLM core foundation (#24712) 2026-05-08 16:56:20 -04:00