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- ..
- _clean.mjs
- acceptance.mjs
- ai-adapters.mjs
- ai-enqueue.mjs
- central.mjs
- deploy-flow.mjs
- external-vps.mjs
- fake-opencode.mjs
- gates.mjs
- immersive.mjs
- lower.mjs
- nexus.mjs
- oidc-core.mjs
- oidc-flow.mjs
- opencode-engine.mjs
- owner-auth.mjs
- proxy.mjs
- retake-landing.mjs
- rls.mjs
- run.mjs
- services.mjs
- shot-central.mjs
- tenant-isolation.mjs
- trusted-https.mjs
- web-shots.mjs
- with-derived.mjs
app/src/app/(app)/integrations/page.tsx
1import { Badge, Card, MaturityBadge, Notice, PageHeader } from "@/components/ui";2import { tokenConfigured, isSecure } from "@/lib/auth";3import { getCtx, ROLE_LEVEL } from "@/lib/tenant";4import { CredForm } from "@/components/cred-form";5import { INTEGRATIONS, credentialStatus } from "@/lib/providers";6export const dynamic = "force-dynamic";7export const metadata = { title: "Integrations" };8const STATIC = [{ n: "Docker", d: "Container runtime", note: "Not installed; needs sudo. Blocked." }, { n: "Zoo IAM", d: "OIDC realm zoo · client zoo-cloud-studio", note: "Dedicated client credentials not provided. Not connected." }];9const tone = { verified: "ok", unverified: "warn", invalid: "err", error: "err" } as const;10export default async function Integrations() {11 const ctx = await getCtx(); const secure = await isSecure(); const authed = !!ctx && ROLE_LEVEL[ctx.role] >= ROLE_LEVEL.admin; const cs = ctx ? await credentialStatus(ctx.orgId) : {};12 return <>13 <PageHeader title="Integration Hub" desc="Secrets are encrypted at rest (AES-256-GCM), never shown again, and a connector is marked verified only after a real 2xx from the provider." badge={<MaturityBadge state="partial" />} />14 {!authed && <div className="mb-4"><Notice tone="info" title="Read-only on this connection">{secure ? "Sign in to manage credentials." : "Credential management requires HTTPS sign-in; it is disabled over plain HTTP."}</Notice></div>}15 <div className="grid gap-4 sm:grid-cols-2 xl:grid-cols-3">{INTEGRATIONS.map(c => { const s = (cs as any)[c.id]; return <Card key={c.id}>16 <div className="flex items-start justify-between gap-2"><div><div className="font-medium">{c.name}</div><div className="text-xs text-muted">{c.desc}</div></div>17 <Badge tone={s ? tone[s.status as keyof typeof tone] ?? "neutral" : "warn"} dot>{s ? s.status : "not configured"}</Badge></div>18 <p className="mt-3 text-sm text-muted">{s ? `Stored key ${s.hint}${s.verified_at ? ` · verified ${s.verified_at.slice(0, 16).replace("T", " ")} UTC` : " · not verified"}` : "No credential stored."}</p>19 {authed && secure && <CredForm id={c.id} has={!!s} status={s?.status} />}</Card>; })}20 {STATIC.map(c => <Card key={c.n}><div className="flex items-start justify-between gap-2"><div><div className="font-medium">{c.n}</div><div className="text-xs text-muted">{c.d}</div></div><Badge tone="err" dot>unavailable</Badge></div><p className="mt-3 text-sm text-muted">{c.note}</p></Card>)}</div>21 <p className="mt-4 text-xs text-muted">Local access token provisioned: {tokenConfigured() ? "yes" : "no"} (interim gate until Zoo IAM). Claude Code subscription logins are not API credentials and are not accepted here.</p></>;22}23
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 692573d on master.
Approval requests
None pending.