GeezerVison is showing github.com — chore: generate · ildella/opencode@98d66e9
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/opencode/src/mcp/catalog.ts +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -63,8 +63,7 @@ export function convertTool(mcpTool: MCPToolDef, client: Client, timeout?: numbe |
63 | 63 | timeout, |
64 | 64 | }, |
65 | 65 | ) |
66 | | - if (result.isError) |
67 | | - throw new Error(formatToolErrorContent(result.content)) |
| 66 | + if (result.isError) throw new Error(formatToolErrorContent(result.content)) |
68 | 67 | if (result.structuredContent === undefined || result.structuredContent === null) return result |
69 | 68 | return { |
70 | 69 | ...result, |
|
Collapse file
Copy file name to clipboardExpand all lines: packages/stats/core/src/domain/home.ts +3-4Lines changed: 3 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -382,10 +382,9 @@ function buildUsagePoints( |
382 | 382 |
|
383 | 383 | function buildLeaderboard(rows: StatMetricRow[], product: UsageProduct, rankWindow: DateWindow) { |
384 | 384 | const previous = new Map( |
385 | | - aggregateByModelName(rowsForProduct(rows, product, rankWindow.previousStart, rankWindow.previousEnd)).map((item) => [ |
386 | | - item.model, |
387 | | - item.totalTokens, |
388 | | - ]), |
| 385 | + aggregateByModelName(rowsForProduct(rows, product, rankWindow.previousStart, rankWindow.previousEnd)).map( |
| 386 | + (item) => [item.model, item.totalTokens], |
| 387 | + ), |
389 | 388 | ) |
390 | 389 |
|
391 | 390 | return aggregateByModelName(rowsForProduct(rows, product, rankWindow.start, rankWindow.end)) |
|