Skip to content
  1. Home
  2. workspace
Checking…
Public 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/design-assets/[[...path]]/route.ts

1import fs from "node:fs";
2import { readManifest, resolveApproved } from "@/lib/design";
3export const dynamic = "force-dynamic";
4const HEAD = { "x-content-type-options": "nosniff", "cache-control": "public, max-age=60", "content-security-policy": "sandbox; default-src 'none'; img-src 'self' data:; style-src 'unsafe-inline'", "cross-origin-resource-policy": "cross-origin" };
5
6export async function GET(req: Request, { params }: { params: Promise<{ path?: string[] }> }) {
7 const { path: parts = [] } = await params;
8 if (parts.length === 0 || (parts.length === 1 && parts[0] === "manifest.json")) {
9 const origin = new URL(req.url).origin; const m = readManifest();
10 return Response.json({ ...m, base: `${origin}/design-assets/`, files: m.files.map(f => ({ ...f, url: `${origin}/design-assets/${f.path}` })) }, { headers: HEAD });
11 }
12 const hit = resolveApproved(parts);
13 if (!hit) return new Response("Not found", { status: 404, headers: { "x-content-type-options": "nosniff" } });
14 const asHtml = hit.entry.type.startsWith("text/html");
15 return new Response(fs.readFileSync(hit.file), { headers: { ...HEAD, "content-type": hit.entry.type, etag: hit.entry.sha256,
16 ...(asHtml ? { "content-disposition": "inline", "content-security-policy": "sandbox; default-src 'none'; style-src 'unsafe-inline'; img-src 'self' data:" } : {}) } });
17}
18

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 0eebc42 on master.

Approval requests

None pending.