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- ..
- assets
- basic-languages
- editor
- language
- nls
- abap-D-t0cyap.js
- apex-CcIm7xu6.js
- azcli-BA0tQDCg.js
- bat-C397hTD6.js
- bicep-DF5aW17k.js
- cameligo-plsz8qhj.js
- clojure-Y2auQMzK.js
- coffee-Bu45yuWE.js
- cpp-CkKPQIni.js
- csharp-CX28MZyh.js
- csp-D8uWnyxW.js
- css-CaeNmE3S.js
- css.worker-C7XcYe5x.js
- cssMode-DpEkhVlW.js
- cypher-DVThT8BS.js
- dart-CmGfCvrO.js
- dockerfile-CZqqYdch.js
- ecl-30fUercY.js
- editor-CG9c2pE-.js
- editor.js
- elixir-O3PRlgxO.js
- flow9-DqtmStfK.js
- freemarker2-DTUDMAl2.js
- fsharp-BOMdg4U1.js
- go-D_hbi-Jt.js
- graphql-CKUU4kLG.js
- handlebars-qLqoXa-4.js
- hcl-DTaboeZW.js
- html-DTxBj26n.js
- html.worker-VIR_LTyv.js
- htmlMode-DFBg6CMj.js
- index-BVflv2uG.js
- index.js
- ini--YXggpAu.js
- java-CI4ZMsH9.js
- javascript-BiL3JN6i.js
- json.worker-DzWXGkG8.js
- jsonMode-Dz4r0pwo.js
- julia-BwzEvaQw.js
- kotlin-IUYPiTV8.js
- less-C0eDYdqa.js
- lexon-iON-Kj97.js
- liquid-lXEUQRVn.js
- loader.js
- lspLanguageFeatures-IeRAvoKK.js
- lua-DtygF91M.js
- m3-CsR4AuFi.js
- markdown-C_rD0bIw.js
- mdx-Dtr248s4.js
- mips-CiYP61RB.js
- monaco.contribution-BRs4bdz5.js
- monaco.contribution-ChoOM5Gg.js
- monaco.contribution-DbKqsbmO.js
- monaco.contribution-DKFaWvum.js
- msdax-C38-sJlp.js
- mysql-CdtbpvbG.js
- nls.messages-loader.js
- objective-c-CntZFaHX.js
- pascal-r6kuqfl_.js
- pascaligo-BiXoTmXh.js
- perl-DABw_TcH.js
- pgsql-me_jFXeX.js
- php-D_kh-9LK.js
- pla-VfZjczW0.js
- postiats-BBSzz8Pk.js
- powerquery-Dt-g_2cc.js
- powershell-B-7ap1zc.js
- protobuf-BmtuEB1A.js
- pug-BRpRNeEb.js
- python-Cma5OvNe.js
- qsharp-BzsFaUU9.js
- r-f8dDdrp4.js
- razor-C8pOqqry.js
- redis-fvZQY4PI.js
- redshift-45Et0LQi.js
- restructuredtext-C7UUFKFD.js
- ruby-CZO8zYTz.js
- rust-Bfetafyc.js
- sb-3GYllVck.js
- scala-foMgrKo1.js
- scheme-CHdMtr7p.js
- scss-C1cmLt9V.js
- shell-ClXCKCEW.js
- solidity-MZ6ExpPy.js
- sophia-DWkuSsPQ.js
- sparql-AUGFYSyk.js
- sql-32GpJSV2.js
- st-CuDFIVZ_.js
- swift-t-PfMj7W.js
- systemverilog-Ch4vA8Yt.js
- tcl-D74tq1nH.js
- toggleHighContrast-CmI6H2gJ.js
- ts.worker-Dp2_QI6H.js
- tsMode-DgC3tGu_.js
- twig-C6taOxMV.js
- typescript-PjDChiYw.js
- typespec-D-PIh9Xw.js
- vb-Dyb2648j.js
- wgsl-BhLXMOR0.js
- workers-B_Zs9c54.js
- xml-BgCkTIhY.js
- yaml-D0tu26m-.js
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.