Harden read-only thread handling and refresh Android releases

This commit is contained in:
kris
2026-04-06 13:26:48 +08:00
parent 9d7d2f4d17
commit 3564aeaf2e
18 changed files with 346 additions and 27 deletions

View File

@@ -12,6 +12,19 @@ export async function POST(request: NextRequest) {
status?: "online" | "abnormal" | "offline";
quota5h?: number;
quota7d?: number;
capabilities?: {
gui?: {
connected?: boolean;
lastSeenAt?: string;
lastActiveProjectId?: string;
};
cli?: {
connected?: boolean;
lastSeenAt?: string;
lastActiveProjectId?: string;
};
};
preferredExecutionMode?: "gui" | "cli";
projects?: string[];
projectCandidates?: Array<{
folderName?: string;
@@ -47,6 +60,8 @@ export async function POST(request: NextRequest) {
status: body.status,
quota5h: body.quota5h ?? 0,
quota7d: body.quota7d ?? 0,
capabilities: body.capabilities,
preferredExecutionMode: body.preferredExecutionMode,
projects: body.projects,
projectCandidates: (body.projectCandidates ?? []).filter(
(candidate) =>