TanStack
OSS
ai
Sign in / Sign up
Open main menu
ai
GitHub
Overview
Runs
Analytics
Loading workspace stats
Loading workspace insights...
Statistics interval
7 days
30 days
Latest CI Pipeline Executions
Status
Fix filter
Filter
Fuzzy
Filter range
Sort by
Sort by
Start time
Sort ascending
Sort descending
Succeeded
feat/improve-usage
d382f20c chore(merge-rework): align usage-extraction tests + openrouter SDK type with AG-UI events Rework applied on top of the main merge commit: - Update all provider usage-extraction tests (anthropic, openai, gemini, grok, openrouter) to observe RUN_FINISHED instead of the removed `done` stream chunk type. The tests assert the extended TokenUsage shape (promptTokensDetails, completionTokensDetails, providerUsageDetails) on the AG-UI RunFinishedEvent that main emits. - Fix openrouter usage helper to import `ChatUsage` (the actual exported name in @openrouter/sdk 0.12.x) instead of the previous `ChatGenerationTokenUsage`. - Fix grok adapter test harness after the merge: widen mockCreate typing for strictNullChecks; use optional chaining for the deprecated RunErrorEvent.error shape; cast `eventTypes` to `Array<string>` so literal string equality checks against AG-UI EventType enum values type-check. - Fix openrouter usage-extraction mock to inspect `params.chatRequest.stream` — the shape main adopted when moving to the SDK's `chat.send({ chatRequest, ... })` call convention.
by Alem Tuzlak
A
Succeeded
feat/improve-usage
d382f20c chore(merge-rework): align usage-extraction tests + openrouter SDK type with AG-UI events Rework applied on top of the main merge commit: - Update all provider usage-extraction tests (anthropic, openai, gemini, grok, openrouter) to observe RUN_FINISHED instead of the removed `done` stream chunk type. The tests assert the extended TokenUsage shape (promptTokensDetails, completionTokensDetails, providerUsageDetails) on the AG-UI RunFinishedEvent that main emits. - Fix openrouter usage helper to import `ChatUsage` (the actual exported name in @openrouter/sdk 0.12.x) instead of the previous `ChatGenerationTokenUsage`. - Fix grok adapter test harness after the merge: widen mockCreate typing for strictNullChecks; use optional chaining for the deprecated RunErrorEvent.error shape; cast `eventTypes` to `Array<string>` so literal string equality checks against AG-UI EventType enum values type-check. - Fix openrouter usage-extraction mock to inspect `params.chatRequest.stream` — the shape main adopted when moving to the SDK's `chat.send({ chatRequest, ... })` call convention.
by Alem Tuzlak
A
Previous page
Previous
Next
Next page