Skip to content
  1. Home
  2. workspace
Checking…
Public view — sanitized data only. Sign in over HTTPS to create projects and manage the workspace.

AI Engineering Workspace

Partial

Chat, 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

app/src/app/(app)/console/team/page.tsx

1import { Card, MaturityBadge, PageHeader } from "@/components/ui";
2import { TeamPanel } from "@/components/console-client";
3import { SignInCard } from "@/components/console-ui";
4import { db } from "@/lib/db";
5import { getCtx, ROLE_DOC, ROLE_LEVEL, ROLES } from "@/lib/tenant";
6export const dynamic = "force-dynamic"; export const metadata = { title: "Team & Access" };
7export default async function Team() {
8 const ctx = await getCtx(); if (!ctx) return <SignInCard what="your team" />;
9 const members = (await db().prepare("SELECT u.id,u.email,u.name,m.role FROM memberships m JOIN users u ON u.id=m.user_id WHERE m.org_id=? ORDER BY m.created_at").all(ctx.orgId) as any[]).map(m => ({ id: String(m.id), email: String(m.email), name: String(m.name), role: String(m.role) }));
10 return <><PageHeader title="Team & Access" desc={`Members and roles for ${ctx.orgName}`} badge={<MaturityBadge state="functional" />} />
11 <div className="grid gap-4 lg:grid-cols-3"><Card title="Members" className="lg:col-span-2"><TeamPanel members={members} canManage={ROLE_LEVEL[ctx.role] >= ROLE_LEVEL.admin} role={ctx.role} me={ctx.userId} /></Card>
12 <Card title="Roles"><ul className="space-y-2 text-sm">{ROLES.map(r => <li key={r}><b>{r}</b><div className="text-xs text-muted">{ROLE_DOC[r]}</div></li>)}</ul><p className="mt-3 text-xs text-muted">Roles apply inside this organization only and are checked on every request. A role can never exceed the granter&apos;s own, and the last owner cannot be removed. Platform administrators are a separate class and are not organization members.</p></Card></div></>;
13}
14

Conversation

Partial
Sign 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.