AI Engineering Workspace
PartialChat, files, terminal and preview in one place. Chat sessions run on a durable Postgres-backed queue (chat only: no tools or shell). Live models need an API key; the terminal is unavailable.
Project files
read-onlyapp/src/app/api/projects/[id]/milestones/route.ts
1import { db, now, uid } from "@/lib/db";2import { auditT, projectOf, tenant, notFound } from "@/lib/tenant";3export async function POST(req: Request, { params }: { params: Promise<{ id: string }> }) {4 const g = await tenant("developer", { write: true }); if (g.res) return g.res; const ctx = g.ctx; const { id } = await params; const b = await req.json().catch(() => ({})); const d = db();5 if (!(await projectOf(ctx, id))) return notFound();6 if (b.toggle) { await d.prepare("UPDATE milestones SET status=CASE WHEN status='open' THEN 'done' ELSE 'open' END WHERE id=? AND project_id=?").run(String(b.toggle), id); return Response.json({ ok: true }); }7 const title = String(b.title ?? "").trim(); if (!title || title.length > 120) return Response.json({ error: "title required (≤120 chars)" }, { status: 422 });8 const due = b.due ? String(b.due).slice(0, 10) : null; if (due && !/^\d{4}-\d{2}-\d{2}$/.test(due)) return Response.json({ error: "due must be YYYY-MM-DD" }, { status: 422 });9 const mid = uid("m_"); await d.prepare("INSERT INTO milestones(id,project_id,title,due,created_at) VALUES(?,?,?,?,?)").run(mid, id, title, due, now()); await auditT(ctx, "milestone.create", id, { title }); return Response.json({ id: mid }, { status: 201 });10}11
Conversation
PartialSign in to start AI sessions.
Task checklist
- Application shell deployed
- Persistent projects
- Agent runtime
- Sandboxed terminal
Execution activity
No agent sessions. Git HEAD 0eebc42 on master.
Approval requests
None pending.