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)/projects/page.tsx
1import Link from "next/link";2import { Plus, Lock } from "lucide-react";3import { Badge, Card, Empty, LinkBtn, MaturityBadge, PageHeader, ago } from "@/components/ui";4import { db } from "@/lib/db";5import { getCtx } from "@/lib/tenant";6export const dynamic = "force-dynamic";7export const metadata = { title: "Projects" };8export default async function Projects() {9 const ctx = await getCtx(); const authed = !!ctx;10 const rows = ctx ? await db().prepare("SELECT p.*, (SELECT COUNT(*) FROM tasks t WHERE t.project_id=p.id) tasks, (SELECT COUNT(*) FROM tasks t WHERE t.project_id=p.id AND t.done=1) done FROM projects p WHERE p.org_id=? ORDER BY updated_at DESC").all(ctx.orgId) as any[] : [];11 return <>12 <PageHeader title="Projects" desc="Directory of all engineering projects, including saved drafts." badge={<MaturityBadge state="functional" />} actions={<LinkBtn href="/projects/new" primary><Plus size={16} />New project</LinkBtn>} />13 <Card pad={false}>{!authed ? <Empty title="Sign in to view projects" desc="Project data is private. The public demo view shows no stored projects." action={<LinkBtn href="/login"><Lock size={15} />Sign in</LinkBtn>} />14 : rows.length === 0 ? <Empty title="No projects yet" desc="Create your first project with the guided wizard." action={<LinkBtn href="/projects/new" primary>Create project</LinkBtn>} />15 : <div className="scroll-x"><table className="tbl"><thead><tr><th>Name</th><th>Status</th><th>Tasks</th><th>Updated</th></tr></thead><tbody>16 {rows.map(r => <tr key={r.id}><td><Link className="font-medium hover:text-accent hover:underline" href={`/projects/${r.id}`}>{r.name}</Link><div className="mono text-muted">{r.slug}</div></td>17 <td><Badge tone={r.status === "active" ? "ok" : r.status === "archived" ? "neutral" : "warn"} dot>{r.status}</Badge></td><td className="tabular-nums">{r.done}/{r.tasks}</td><td className="text-muted">{ago(r.updated_at)}</td></tr>)}</tbody></table></div>}</Card></>;18}19
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 1c27633 on master.
Approval requests
None pending.