merge: maestro/tsk_sjzC4B9ctg6W [tsk_sjzC4B9ctg6W]

This commit is contained in:
maestro
2026-06-13 11:35:00 +08:00
4 changed files with 781 additions and 201 deletions
+3
View File
@@ -132,6 +132,9 @@ export function buildServer(opts: ApiOptions): FastifyInstance {
return { totalActive: runs.length, agents, usage: await getUsage() };
});
// Claude 订阅额度(5 小时 + 周窗口)单独透传;查询失败 → null(前端/CLI 降级显示)
app.get('/api/usage', async () => await getUsage());
app.get('/api/projects/:id/tasks', (req) => {
const { id } = req.params as { id: string };
return store.listTasks(id);