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- ..
- ai.ts
- apps.ts
- audit.ts
- auth.ts
- central-core.d.mts
- central-core.mjs
- central.ts
- cloud.ts
- config.ts
- crypto.ts
- db.ts
- design.ts
- engines.ts
- files.ts
- gates.ts
- gateway.ts
- marketplace-core.d.mts
- marketplace-core.mjs
- metrics.ts
- modules.ts
- motion.ts
- nexus-core.d.mts
- nexus-core.mjs
- oidc-core.d.mts
- oidc-core.mjs
- oidc.ts
- providers.ts
- proxy-core.d.mts
- proxy-core.mjs
- pwauth-core.d.mts
- pwauth-core.mjs
- requirements.ts
- rls.sql.d.mts
- rls.sql.mjs
- services-content.ts
- ssrf.ts
- status.ts
- tenant.ts
- tlsgate.ts
- workspace.ts
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" };56export 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
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.