chore: update oxlint and oxfmt (#17150)

This commit is contained in:
Neil
2026-08-29 14:13:35 -07:00
committed by GitHub
parent b17f60d744
commit 2dfaa676d8
68 changed files with 1110 additions and 1256 deletions
+19 -21
View File
@@ -150,25 +150,23 @@ export function buildOpenCodeUsageRecentSessions(
filteredSessions: OpenCodeUsageSession[],
limit = 10
): OpenCodeUsageSessionRow[] {
return filteredSessions.slice(0, limit).map(
(session): OpenCodeUsageSessionRow => ({
sessionId: session.sessionId,
lastActiveAt: session.lastTimestamp,
durationMinutes: Math.max(
0,
Math.round(
(new Date(session.lastTimestamp).getTime() - new Date(session.firstTimestamp).getTime()) /
60_000
)
),
projectLabel: session.primaryProjectLabel,
model: session.primaryModel,
events: session.eventCount,
inputTokens: session.totalInputTokens,
cachedInputTokens: session.totalCachedInputTokens,
outputTokens: session.totalOutputTokens,
reasoningOutputTokens: session.totalReasoningOutputTokens,
totalTokens: session.totalTokens
})
)
return filteredSessions.slice(0, limit).map((session): OpenCodeUsageSessionRow => ({
sessionId: session.sessionId,
lastActiveAt: session.lastTimestamp,
durationMinutes: Math.max(
0,
Math.round(
(new Date(session.lastTimestamp).getTime() - new Date(session.firstTimestamp).getTime()) /
60_000
)
),
projectLabel: session.primaryProjectLabel,
model: session.primaryModel,
events: session.eventCount,
inputTokens: session.totalInputTokens,
cachedInputTokens: session.totalCachedInputTokens,
outputTokens: session.totalOutputTokens,
reasoningOutputTokens: session.totalReasoningOutputTokens,
totalTokens: session.totalTokens
}))
}