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-only- ..
- apple-touch-icon.png
- brand-guidelines-v2.md
- brand-manifest-v2.json
- favicon-16.png
- favicon-32.png
- favicon-48.png
- favicon.ico
- icon-192.png
- icon-512.png
- maskable-192.png
- maskable-512.png
- source-brand-board.png
- source-crop-icon-fullcolor.png
- source-crop-lockup-dark.png
- source-crop-wordmark-light.png
- zloud-app-icon-1024.png
- zloud-app-icon.svg
- zloud-favicon.svg
- zloud-mark-1024.png
- zloud-mark-512.png
- zloud-mark-mono-512.png
- zloud-mark-mono.svg
- zloud-mark-reversed.svg
- zloud-mark-white-512.png
- zloud-mark-white.svg
- zloud-mark.svg
- zloud-maskable.svg
- zloud-wordmark-dark.svg
- zloud-wordmark-light.svg
- zloud-wordmark-mono.svg
app/src/app/api/workspace/[project]/upload/route.ts
1import { auditT, tenant } from "@/lib/tenant";2import { root, upload, WsError, MAX_UPLOAD } from "@/lib/workspace";3export async function POST(req: Request, { params }: { params: Promise<{ project: string }> }) {4 const g = await tenant("developer", { write: true }); if (g.res) return g.res; const ctx = g.ctx;5 try { const { project } = await params; const r = await root(project, ctx.orgId);6 if (Number(req.headers.get("content-length") ?? 0) > MAX_UPLOAD + 100_000) throw new WsError("too large", 413);7 const fd = await req.formData(); const f = fd.get("file"); if (!(f instanceof File)) throw new WsError("file required");8 const rel = upload(r, String(fd.get("dir") ?? ""), f.name, Buffer.from(await f.arrayBuffer())); await auditT(ctx, "workspace.upload", `${project}/${rel}`, { bytes: f.size }); return Response.json({ ok: true, path: rel });9 } catch (e) { return e instanceof WsError ? Response.json({ error: e.message }, { status: e.status }) : Response.json({ error: "bad upload" }, { status: 400 }); }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 692573d on master.
Approval requests
None pending.