feat: claude quotas
CI / verify (pull_request) Successful in 9s

This commit is contained in:
2026-10-07 14:49:00 +02:00
parent 0c7ac2b532
commit f6c69c7db0
6 changed files with 405 additions and 19 deletions
+6 -6
View File
@@ -10,15 +10,15 @@ const window = z.object({
remaining: z.number(),
});
const status = z
.object({ plan: z.string(), fetchedAt: z.number(), windows: z.array(window) })
.nullable();
export const QuotaRpc = Rpc.define({
id: "stanp-opencode.quota",
methods: {
status: {
input: z.object({}),
output: z
.object({ plan: z.string(), fetchedAt: z.number(), windows: z.array(window) })
.nullable(),
},
status: { input: z.object({}), output: status },
claude: { input: z.object({}), output: status },
},
events: { updated: { schema: z.object({}) } },
});