feat: add agent-first minitool studio MVP
CI / verify (push) Has been cancelled

This commit is contained in:
2026-09-17 21:54:33 +08:00
commit 74a8f7cdf3
51 changed files with 3855 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { NextRequest, NextResponse } from "next/server";
import { createProject, listProjects } from "../../../lib/storage";
import { errorResponse } from "../../../lib/http";
export const runtime = "nodejs";
export async function GET() {
try { return NextResponse.json({ projects: await listProjects() }); }
catch (error) { return errorResponse(error); }
}
export async function POST(request: NextRequest) {
try {
const body = await request.json().catch(() => ({}));
return NextResponse.json({ project: await createProject(body) }, { status: 201 });
} catch (error) { return errorResponse(error); }
}