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- ..
- _clean.mjs
- acceptance.mjs
- ai-adapters.mjs
- ai-enqueue.mjs
- central.mjs
- deploy-flow.mjs
- external-vps.mjs
- fake-opencode.mjs
- gates.mjs
- immersive.mjs
- lower.mjs
- nexus.mjs
- oidc-core.mjs
- oidc-flow.mjs
- opencode-engine.mjs
- owner-auth.mjs
- proxy.mjs
- retake-landing.mjs
- rls.mjs
- run.mjs
- services.mjs
- shot-central.mjs
- tenant-isolation.mjs
- trusted-https.mjs
- web-shots.mjs
- with-derived.mjs
app/src/app/api/projects/[id]/route.ts
1import { db, now } from "@/lib/db";2import { auditT, projectOf, tenant, notFound } from "@/lib/tenant";3export const dynamic = "force-dynamic";4export async function PATCH(req: Request, { params }: { params: Promise<{ id: string }> }) {5 const g = await tenant("developer", { write: true }); if (g.res) return g.res; const ctx = g.ctx; const { id } = await params;6 const b = await req.json().catch(() => ({})); const d = db();7 if (!(await projectOf(ctx, id))) return notFound();8 if (typeof b.name === "string" && b.name.trim().length >= 2 && b.name.length <= 80) await d.prepare("UPDATE projects SET name=?,updated_at=? WHERE id=?").run(b.name.trim(), now(), id);9 if (["draft", "active", "archived"].includes(b.status)) await d.prepare("UPDATE projects SET status=?,updated_at=? WHERE id=?").run(b.status, now(), id);10 await auditT(ctx, "project.patch", id, { status: b.status ?? null }); return Response.json({ ok: true });11}12
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.