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/instances/page.tsx

1import { Card, MaturityBadge, PageHeader } from "@/components/ui";
2import { InstancesPanel } from "@/components/console-client";
3import { SignInCard } from "@/components/console-ui";
4import { db } from "@/lib/db";
5import { getCtx, ROLE_LEVEL } from "@/lib/tenant";
6import { nodeState } from "@/lib/cloud";
7export const dynamic = "force-dynamic"; export const metadata = { title: "Cloud Instances" };
8export default async function Instances() {
9 const ctx = await getCtx(); if (!ctx) return <SignInCard what="cloud instances" />;
10 const rows = await db().prepare("SELECT id,name,target,status FROM instances WHERE org_id=? ORDER BY created_at DESC").all(ctx.orgId) as any[];
11 const nodes = await db().prepare("SELECT id,instance_id,label,revoked_at,enroll_used_at,last_seen FROM nodes WHERE org_id=?").all(ctx.orgId) as any[];
12 const instances = rows.map(r => ({ id: String(r.id), name: String(r.name), target: String(r.target), status: String(r.status), nodes: nodes.filter(n => n.instance_id === r.id).map(n => ({ id: String(n.id), label: String(n.label), state: nodeState(n) })) }));
13 return <><PageHeader title="Cloud Instances" desc="A Cloud Instance is a logical environment. Choose where it runs: your own VPS, or Zloud Compute (managed)." badge={<MaturityBadge state="functional" />} />
14 <Card><InstancesPanel instances={instances} canManage={ROLE_LEVEL[ctx.role] >= ROLE_LEVEL.admin} /></Card>
15 <p className="mt-3 text-xs text-muted">Lifecycle: created → (pending provisioning) → active ⇄ suspended → terminated. Terminating never deletes data and nothing here is billed.</p></>;
16}
17

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.