Skip to content
  1. Home
  2. workspace
Checking…
Demo view — sanitized data only. Sign in over HTTPS to create projects and manage the workspace.

AI Engineering Workspace

Partial

Chat, 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

app/src/app/api/workspace/[project]/git/route.ts

1import { auditT, tenant } from "@/lib/tenant";
2import { gitOp, root, WsError } from "@/lib/workspace";
3export const dynamic = "force-dynamic";
4const READ = new Set(["status", "diff", "log", "branches"]);
5export async function POST(req: Request, { params }: { params: Promise<{ project: string }> }) {
6 try { const b = await req.json().catch(() => ({})); const op = String(b.op ?? "");
7 const g = READ.has(op) ? await tenant("viewer") : await tenant("developer", { write: true }); if (g.res) return g.res; const ctx = g.ctx;
8 const { project } = await params; const r = await root(project, ctx.orgId); const out = await gitOp(r, op, typeof b.arg === "string" ? b.arg : "");
9 if (!READ.has(op)) await auditT(ctx, `workspace.git.${op}`, project, { arg: String(b.arg ?? "").slice(0, 80) }); return Response.json(out);
10 } catch (e) { return e instanceof WsError ? Response.json({ error: e.message }, { status: e.status }) : Response.json({ error: "internal error" }, { status: 500 }); }
11}
12

Conversation

Partial
Sign 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.