merge: maestro/tsk_sjzC4B9ctg6W [tsk_sjzC4B9ctg6W]
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user