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)/layout.tsx

1import type { Metadata } from "next";
2import { Shell } from "@/components/shell";
3import { MODULES } from "@/lib/modules";
4import { isSecure, httpsBase } from "@/lib/auth";
5import { getCtx } from "@/lib/tenant";
6import { db, getSetting } from "@/lib/db";
7import { listAudit } from "@/lib/audit";
8
9export const dynamic = "force-dynamic";
10export const metadata: Metadata = { title: { default: "Zloud Studio", template: "%s · Zloud Studio" }, description: "Zloud Studio — AI engineering workspace and cloud console" };
11
12export default async function RootLayout({ children }: { children: React.ReactNode }) {
13 const ctx = await getCtx(); const authed = !!ctx; const secure = await isSecure(); const signInUrl = (await httpsBase()) + "/login";
14 const name = await getSetting("product_name", "Zloud Studio"); const tagline = await getSetting("tagline", "Powered by Zoo Bangladesh");
15 const projects = authed ? (await db().prepare("SELECT id,name FROM projects WHERE status!='archived' AND org_id=? ORDER BY updated_at DESC LIMIT 20").all(ctx!.orgId) as any[]).map(r => ({ id: String(r.id), name: String(r.name) })) : [];
16 const notifs = authed ? (await listAudit("", 5, ctx!.platformAdmin ? undefined : ctx!.orgId)).map(a => ({ ts: String(a.ts), action: String(a.action), resource: String(a.resource ?? "") })) : [];
17 const nav = MODULES.filter(m => m.id.startsWith("D")).map(m => ({ id: m.id, title: m.title, href: m.href, icon: m.icon }));
18 const cnav = authed ? [{ title: "Overview", href: "/console", icon: "LayoutDashboard" }, { title: "Cloud Instances", href: "/console/instances", icon: "Cloud" }, { title: "Zloud Compute (managed)", href: "/console/managed", icon: "HardDrive", tag: "request" }, { title: "External VPS", href: "/console/servers", icon: "Network" }, { title: "Web Hosting", href: "/console/hosting", icon: "Globe", tag: "soon" }, { title: "Applications", href: "/projects", icon: "FolderKanban" }, { title: "Databases", href: "/console/databases", icon: "Database", tag: "soon" }, { title: "AI Studio", href: "/workspace", icon: "Sparkles" }, { title: "Terminal", href: "/terminal", icon: "SquareTerminal", tag: "blocked" }, { title: "Domains & HTTPS", href: "/console/domains", icon: "Globe" }, { title: "Marketplace", href: "/console/marketplace", icon: "Boxes" }, { title: "Deployments", href: "/console/deployments", icon: "Rocket" }, { title: "Billing & Usage", href: "/console/billing", icon: "CreditCard" }, { title: "Team & Access", href: "/console/team", icon: "Users" }, { title: "Settings", href: "/console/settings", icon: "Settings" }] : [];
19 return <Shell cnav={cnav} platform={!!ctx?.platformAdmin} orgs={ctx?.orgs ?? []} orgId={ctx?.orgId ?? ""} orgName={ctx?.orgName ?? ""} role={ctx?.role ?? ""} name={name} tagline={tagline} nav={nav} authed={authed} secure={secure} signInUrl={signInUrl} projects={projects} notifs={notifs}>{children}</Shell>;
20}
21

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.