cloudaxe-opencode/packages/llm/test
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
..
fixtures/recordings
lib
provider refactor(llm): trim Usage helpers + Bedrock subtraction 2026-05-10 13:22:49 -04:00
adapter.test.ts Add explicit LLM stream lifecycle events (#26722) 2026-05-10 12:19:13 -04:00
auth-options.types.ts
auth.test.ts
endpoint.test.ts
executor.test.ts
exports.test.ts
generate-object.test.ts
llm.test.ts Add explicit LLM stream lifecycle events (#26722) 2026-05-10 12:19:13 -04:00
provider.types.ts
recorded-golden.ts
recorded-runner.ts
recorded-scenarios.ts
recorded-test.ts refactor(http-recorder): hide cassette format behind Cassette seam (#26725) 2026-05-10 12:29:55 -04:00
recorded-utils.ts
recorded-websocket.ts feat(http-recorder): default mode to "auto" (#26719) 2026-05-10 16:05:11 +00:00
schema.test.ts refactor(llm): drop Usage.totalInput / totalOutput helpers 2026-05-10 19:15:46 -04:00
tool-runtime.test.ts
tool-stream.test.ts
tool.types.ts