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-onlyapp/src/app/(app)/deployments/page.tsx
1import { customerBlock } from "@/components/platform-guard";2import { Badge, Card, Empty, MaturityBadge, PageHeader, ago } from "@/components/ui";3import { db, enterScope } from "@/lib/db";4export const dynamic = "force-dynamic";5export const metadata = { title: "Deployments" };6export default async function Deployments() {7 enterScope({ org: "org_owner", mode: "demo" }); // public, read-only deployment history (database enforces read-only)8 const blocked = await customerBlock(); if (blocked) return blocked;9 const rows = await db().prepare("SELECT * FROM deployments ORDER BY started_at DESC LIMIT 50").all() as any[];10 return <>11 <PageHeader title="Deployment Center" desc="Release history recorded by scripts/deploy.sh, with health-check evidence." badge={<MaturityBadge state="partial" />} />12 <Card pad={false}>{rows.length === 0 ? <Empty title="No deployments recorded" desc="Run scripts/deploy.sh." /> : <div className="scroll-x"><table className="tbl"><thead><tr><th>Version</th><th>Commit</th><th>Env</th><th>Status</th><th>Health</th><th>When</th></tr></thead><tbody>13 {rows.map(r => <tr key={r.id}><td className="font-medium">{r.version}</td><td className="mono">{(r.commit_sha || "").slice(0, 7) || "—"}</td><td>{r.env}</td><td><Badge tone={r.status === "success" ? "ok" : "err"} dot>{r.status}</Badge></td><td className="text-muted">{r.health}</td><td className="text-muted">{ago(r.started_at)}</td></tr>)}</tbody></table></div>}</Card>14 <div className="mt-4 grid gap-4 md:grid-cols-3">{[["Build queue", "Not started"], ["Rollback", "Re-run deploy.sh on a previous commit; UI trigger not wired"], ["Environments", "Experimental only"]].map(([t, d]) => <Card key={t} title={t}><p className="text-sm text-muted">{d}</p></Card>)}</div></>;15}16
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.