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)/settings/branding.tsx
1"use client";2import { useRouter } from "next/navigation";3import { useState } from "react";4export function Branding({ name, tagline }: { name: string; tagline: string }) {5 const r = useRouter(); const [n, setN] = useState(name), [t, setT] = useState(tagline), [m, setM] = useState("");6 return <form className="space-y-3" onSubmit={async e => { e.preventDefault(); const x = await fetch("/api/settings", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ product_name: n, tagline: t }) }); setM(x.ok ? "Saved" : "Failed"); r.refresh(); }}>7 <label className="block text-sm font-medium" htmlFor="bn">Product name</label><input id="bn" className="input" value={n} onChange={e => setN(e.target.value)} maxLength={60} />8 <label className="block text-sm font-medium" htmlFor="bt">Tagline</label><input id="bt" className="input" value={t} onChange={e => setT(e.target.value)} maxLength={60} />9 <button className="btn btn-primary">Save</button><div aria-live="polite" className="text-sm text-muted">{m}</div></form>;10}1112export function AiLimits({ monthly, project }: { monthly: number; project: number }) {13 const [m, setM] = useState(String(monthly)), [p, setP] = useState(String(project)), [msg, setMsg] = useState("");14 return <form className="space-y-3" onSubmit={async e => { e.preventDefault(); const x = await fetch("/api/settings", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ "ai.monthly_cap_usd": Number(m), "ai.project_cap_usd": Number(p) }) }); setMsg(x.ok ? "Saved" : "Failed"); }}>15 <label className="block text-sm font-medium" htmlFor="mc">Global monthly cap (USD)</label><input id="mc" className="input" inputMode="decimal" value={m} onChange={e => setM(e.target.value)} />16 <label className="block text-sm font-medium" htmlFor="pc">Per-project cap (USD)</label><input id="pc" className="input" inputMode="decimal" value={p} onChange={e => setP(e.target.value)} />17 <p className="text-xs text-muted">Each session also has its own budget. A call is refused if its worst-case cost would exceed any cap.</p>18 <button className="btn btn-primary">Save limits</button><div aria-live="polite" className="text-sm text-muted">{msg}</div></form>;19}20
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.