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- ..
- assets
- basic-languages
- editor
- language
- nls
- abap-D-t0cyap.js
- apex-CcIm7xu6.js
- azcli-BA0tQDCg.js
- bat-C397hTD6.js
- bicep-DF5aW17k.js
- cameligo-plsz8qhj.js
- clojure-Y2auQMzK.js
- coffee-Bu45yuWE.js
- cpp-CkKPQIni.js
- csharp-CX28MZyh.js
- csp-D8uWnyxW.js
- css-CaeNmE3S.js
- css.worker-C7XcYe5x.js
- cssMode-DpEkhVlW.js
- cypher-DVThT8BS.js
- dart-CmGfCvrO.js
- dockerfile-CZqqYdch.js
- ecl-30fUercY.js
- editor-CG9c2pE-.js
- editor.js
- elixir-O3PRlgxO.js
- flow9-DqtmStfK.js
- freemarker2-DTUDMAl2.js
- fsharp-BOMdg4U1.js
- go-D_hbi-Jt.js
- graphql-CKUU4kLG.js
- handlebars-qLqoXa-4.js
- hcl-DTaboeZW.js
- html-DTxBj26n.js
- html.worker-VIR_LTyv.js
- htmlMode-DFBg6CMj.js
- index-BVflv2uG.js
- index.js
- ini--YXggpAu.js
- java-CI4ZMsH9.js
- javascript-BiL3JN6i.js
- json.worker-DzWXGkG8.js
- jsonMode-Dz4r0pwo.js
- julia-BwzEvaQw.js
- kotlin-IUYPiTV8.js
- less-C0eDYdqa.js
- lexon-iON-Kj97.js
- liquid-lXEUQRVn.js
- loader.js
- lspLanguageFeatures-IeRAvoKK.js
- lua-DtygF91M.js
- m3-CsR4AuFi.js
- markdown-C_rD0bIw.js
- mdx-Dtr248s4.js
- mips-CiYP61RB.js
- monaco.contribution-BRs4bdz5.js
- monaco.contribution-ChoOM5Gg.js
- monaco.contribution-DbKqsbmO.js
- monaco.contribution-DKFaWvum.js
- msdax-C38-sJlp.js
- mysql-CdtbpvbG.js
- nls.messages-loader.js
- objective-c-CntZFaHX.js
- pascal-r6kuqfl_.js
- pascaligo-BiXoTmXh.js
- perl-DABw_TcH.js
- pgsql-me_jFXeX.js
- php-D_kh-9LK.js
- pla-VfZjczW0.js
- postiats-BBSzz8Pk.js
- powerquery-Dt-g_2cc.js
- powershell-B-7ap1zc.js
- protobuf-BmtuEB1A.js
- pug-BRpRNeEb.js
- python-Cma5OvNe.js
- qsharp-BzsFaUU9.js
- r-f8dDdrp4.js
- razor-C8pOqqry.js
- redis-fvZQY4PI.js
- redshift-45Et0LQi.js
- restructuredtext-C7UUFKFD.js
- ruby-CZO8zYTz.js
- rust-Bfetafyc.js
- sb-3GYllVck.js
- scala-foMgrKo1.js
- scheme-CHdMtr7p.js
- scss-C1cmLt9V.js
- shell-ClXCKCEW.js
- solidity-MZ6ExpPy.js
- sophia-DWkuSsPQ.js
- sparql-AUGFYSyk.js
- sql-32GpJSV2.js
- st-CuDFIVZ_.js
- swift-t-PfMj7W.js
- systemverilog-Ch4vA8Yt.js
- tcl-D74tq1nH.js
- toggleHighContrast-CmI6H2gJ.js
- ts.worker-Dp2_QI6H.js
- tsMode-DgC3tGu_.js
- twig-C6taOxMV.js
- typescript-PjDChiYw.js
- typespec-D-PIh9Xw.js
- vb-Dyb2648j.js
- wgsl-BhLXMOR0.js
- workers-B_Zs9c54.js
- xml-BgCkTIhY.js
- yaml-D0tu26m-.js
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";89export 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" };1112export 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
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.