Harden read-only thread handling and refresh Android releases
This commit is contained in:
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user