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)/console/servers/page.tsx
1import fs from "node:fs";2import path from "node:path";3import { Card, MaturityBadge, Notice, PageHeader } from "@/components/ui";4import { ServersPanel } from "@/components/console-client";5import { SignInCard } from "@/components/console-ui";6import { httpsBase } from "@/lib/auth";7import { DATA_DIR, db } from "@/lib/db";8import { getCtx, ROLE_LEVEL } from "@/lib/tenant";9import { nodeState } from "@/lib/cloud";10export const dynamic = "force-dynamic"; export const metadata = { title: "External VPS" };11export default async function Servers() {12 const ctx = await getCtx(); if (!ctx) return <SignInCard what="your servers" />;13 const instances = (await db().prepare("SELECT id,name FROM instances WHERE org_id=? AND target='external' AND status NOT IN ('terminated','suspended') ORDER BY created_at DESC").all(ctx.orgId) as any[]).map(i => ({ id: String(i.id), name: String(i.name) }));14 const nodes = (await db().prepare("SELECT id,instance_id,label,hostname,os,agent_version,metrics,last_seen,revoked_at,enroll_used_at FROM nodes WHERE org_id=? ORDER BY created_at DESC").all(ctx.orgId) as any[]).map(n => ({ id: String(n.id), instance_id: String(n.instance_id), label: String(n.label), state: nodeState(n), hostname: n.hostname ?? undefined, os: n.os ?? undefined, agent_version: n.agent_version ?? undefined, metrics: n.metrics ? JSON.parse(n.metrics) : null }));15 const jobs = (await db().prepare("SELECT id,node_id,kind,status,result FROM node_jobs WHERE org_id=? ORDER BY created_at DESC LIMIT 10").all(ctx.orgId) as any[]).map(j => ({ id: String(j.id), node_id: String(j.node_id), kind: String(j.kind), status: String(j.status), result: j.result ? String(j.result) : null }));16 let pkg: { file: string; version: string } | null = null; try { const m = JSON.parse(fs.readFileSync(path.join(DATA_DIR, "packages", "manifest.json"), "utf8")); pkg = { file: m.packages[0].file, version: m.packages[0].version }; } catch {}17 return <><PageHeader title="External VPS" desc="Connect a server you own. The agent connects outbound; you open no inbound ports." badge={<MaturityBadge state="partial" />} />18 <div className="mb-4"><Notice tone="warn" title="Verified locally only">The enrollment flow, token rules, revocation and job routing are tested against this host. It has not been verified on a separate, independent server.</Notice></div>19 <Card><ServersPanel instances={instances} nodes={nodes} jobs={jobs} canManage={ROLE_LEVEL[ctx.role] >= ROLE_LEVEL.admin} canJob={ROLE_LEVEL[ctx.role] >= ROLE_LEVEL.developer} origin={await httpsBase()} pkg={pkg} /></Card></>;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.