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/(marketing)/packages/[file]/route.ts
1import fs from "node:fs";2import path from "node:path";3import { DATA_DIR } from "@/lib/db";4export const dynamic = "force-dynamic";5// Serves only files named in the signed manifest (exact match), never a path.6export async function GET(_: Request, { params }: { params: Promise<{ file: string }> }) {7 const { file } = await params; const dir = path.join(DATA_DIR, "packages");8 try { const m = JSON.parse(fs.readFileSync(path.join(dir, "manifest.json"), "utf8")); const ok = m.packages.some((p: any) => p.file === file || p.signature === file); if (!ok) throw 0;9 return new Response(fs.readFileSync(path.join(dir, file)), { headers: { "content-type": file.endsWith(".sig") ? "text/plain" : "text/javascript", "content-disposition": `attachment; filename="${file}"`, "cache-control": "no-store" } }); }10 catch { return Response.json({ error: "not found" }, { status: 404 }); }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 0eebc42 on master.
Approval requests
None pending.