cloudaxe-opencode/packages/llm/test
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
..
fixtures/recordings chore: generate 2026-05-08 20:57:36 +00:00
lib Add native LLM core foundation (#24712) 2026-05-08 16:56:20 -04:00
provider feat(llm): add Usage.totalInputTokens / totalOutputTokens getters 2026-05-10 19:29:41 -04:00
adapter.test.ts Add explicit LLM stream lifecycle events (#26722) 2026-05-10 12:19:13 -04:00
auth-options.types.ts Add native LLM core foundation (#24712) 2026-05-08 16:56:20 -04:00
auth.test.ts Add native LLM core foundation (#24712) 2026-05-08 16:56:20 -04:00
endpoint.test.ts chore: generate 2026-05-08 20:57:36 +00:00
executor.test.ts Add native LLM core foundation (#24712) 2026-05-08 16:56:20 -04:00
exports.test.ts Add native LLM core foundation (#24712) 2026-05-08 16:56:20 -04:00
generate-object.test.ts chore: generate 2026-05-08 20:57:36 +00:00
llm.test.ts Add explicit LLM stream lifecycle events (#26722) 2026-05-10 12:19:13 -04:00
provider.types.ts Add native LLM core foundation (#24712) 2026-05-08 16:56:20 -04:00
recorded-golden.ts Add native LLM core foundation (#24712) 2026-05-08 16:56:20 -04:00
recorded-runner.ts Add native LLM core foundation (#24712) 2026-05-08 16:56:20 -04:00
recorded-scenarios.ts Add native LLM core foundation (#24712) 2026-05-08 16:56:20 -04:00
recorded-test.ts refactor(http-recorder): hide cassette format behind Cassette seam (#26725) 2026-05-10 12:29:55 -04:00
recorded-utils.ts Add native LLM core foundation (#24712) 2026-05-08 16:56:20 -04:00
recorded-websocket.ts feat(http-recorder): default mode to "auto" (#26719) 2026-05-10 16:05:11 +00:00
schema.test.ts feat(llm): add Usage.totalInputTokens / totalOutputTokens getters 2026-05-10 19:29:41 -04:00
tool-runtime.test.ts Add native LLM core foundation (#24712) 2026-05-08 16:56:20 -04:00
tool-stream.test.ts Add native LLM core foundation (#24712) 2026-05-08 16:56:20 -04:00
tool.types.ts Add native LLM core foundation (#24712) 2026-05-08 16:56:20 -04:00