Skip to content

Commit ab77ff2

Browse files
committed
Merge remote-tracking branch 'origin/main' into bb/experiment-stats
2 parents 5b83dd1 + 13534cc commit ab77ff2

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

packages/types/npm/package.metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@roo-code/types",
3-
"version": "1.79.0",
3+
"version": "1.80.0",
44
"description": "TypeScript type definitions for Roo Code.",
55
"publishConfig": {
66
"access": "public",

packages/types/src/cloud.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -227,28 +227,6 @@ export const shareResponseSchema = z.object({
227227

228228
export type ShareResponse = z.infer<typeof shareResponseSchema>
229229

230-
/**
231-
* UsageStats
232-
*/
233-
234-
export const usageStatsSchema = z.object({
235-
success: z.boolean(),
236-
data: z.object({
237-
dates: z.array(z.string()), // Array of date strings
238-
tasks: z.array(z.number()), // Array of task counts
239-
tokens: z.array(z.number()), // Array of token counts
240-
costs: z.array(z.number()), // Array of costs in USD
241-
totals: z.object({
242-
tasks: z.number(),
243-
tokens: z.number(),
244-
cost: z.number(), // Total cost in USD
245-
}),
246-
}),
247-
period: z.number(), // Period in days (e.g., 30)
248-
})
249-
250-
export type UsageStats = z.infer<typeof usageStatsSchema>
251-
252230
/**
253231
* AuthService
254232
*/
@@ -743,3 +721,25 @@ export type LeaveResponse = {
743721
taskId?: string
744722
timestamp?: string
745723
}
724+
725+
/**
726+
* UsageStats
727+
*/
728+
729+
export const usageStatsSchema = z.object({
730+
success: z.boolean(),
731+
data: z.object({
732+
dates: z.array(z.string()), // Array of date strings
733+
tasks: z.array(z.number()), // Array of task counts
734+
tokens: z.array(z.number()), // Array of token counts
735+
costs: z.array(z.number()), // Array of costs in USD
736+
totals: z.object({
737+
tasks: z.number(),
738+
tokens: z.number(),
739+
cost: z.number(), // Total cost in USD
740+
}),
741+
}),
742+
period: z.number(), // Period in days (e.g., 30)
743+
})
744+
745+
export type UsageStats = z.infer<typeof usageStatsSchema>

0 commit comments

Comments
 (0)