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/(app)/files/page.tsx
1import { customerBlock } from "@/components/platform-guard";2import Link from "next/link";3import { Folder, FileCode2 } from "lucide-react";4import { Badge, Card, MaturityBadge, PageHeader } from "@/components/ui";5import { list, read, gitInfo } from "@/lib/files";6export const dynamic = "force-dynamic";7export const metadata = { title: "Files & Code" };8export default async function Files({ searchParams }: { searchParams: Promise<{ dir?: string; file?: string }> }) {9 const blocked = await customerBlock(); if (blocked) return blocked;10 const sp = await searchParams; const dir = sp.dir ?? "."; const nodes = list(dir) ?? []; const f = sp.file ? read(sp.file) : null; const git = gitInfo();11 return <>12 <PageHeader title="Files & Code" desc="Project-scoped read-only explorer with git status and history. Secrets, dependencies and data directories are never listed." badge={<MaturityBadge state="partial" />} />13 <div className="grid gap-4 lg:grid-cols-[20rem_1fr]">14 <div className="space-y-4">15 <Card title={<span className="mono">{dir}</span>} pad={false}><ul className="max-h-96 overflow-auto p-1.5 text-sm">16 {dir !== "." && <li><Link className="block rounded px-2 py-1 text-muted hover:bg-surface2" href={`?dir=${encodeURIComponent(dir.split("/").slice(0, -1).join("/") || ".")}`}>..</Link></li>}17 {nodes.map(n => <li key={n.path}><Link className="flex items-center gap-2 rounded px-2 py-1 hover:bg-surface2" href={n.dir ? `?dir=${encodeURIComponent(n.path)}` : `?dir=${encodeURIComponent(dir)}&file=${encodeURIComponent(n.path)}`}>18 {n.dir ? <Folder size={14} /> : <FileCode2 size={14} />}<span className="truncate">{n.name}</span></Link></li>)}</ul></Card>19 <Card title="Git"><div className="space-y-1 text-sm"><div>Branch <span className="mono">{git.branch || "—"}</span> · HEAD <span className="mono">{git.head || "none"}</span></div>20 <div className="text-muted">{git.status.length ? `${git.status.length} changed path(s)` : "Working tree clean"}</div></div>21 {git.status.length > 0 && <pre className="mono mt-2 max-h-32 overflow-auto rounded bg-surface2 p-2">{git.status.join("\n")}</pre>}</Card></div>22 <div className="space-y-4">23 <Card title={sp.file ? <span className="mono">{sp.file}</span> : "Select a file"} pad={false}>{f ? <pre className="mono max-h-[32rem] overflow-auto p-3">{f.text}{f.truncated && "\n… truncated"}</pre> : <div className="p-6 text-sm text-muted">Choose a file from the tree. Editing, upload and download are not implemented yet.</div>}</Card>24 <Card title="Commit history" pad={false}>{git.log.length ? <ul className="divide-y divide-line">{git.log.map(([h, s, w]) => <li key={h} className="flex items-center gap-3 px-4 py-2 text-sm"><span className="mono text-accent">{h}</span><span className="min-w-0 flex-1 truncate">{s}</span><span className="text-xs text-muted">{w}</span></li>)}</ul> : <div className="p-4 text-sm text-muted">No commits yet.</div>}</Card></div></div></>;25}26
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.