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
scripts/edge.mjs
1// Edge proxy (user-space; no root for :80/:443). :8080 plain HTTP (read-only demo) and :8443 TLS -> app on 127.0.0.1:3000.2// It OVERWRITES x-zcs-proto so the app can trust it: sign-in and all writes are honoured only when proto === "https".3import http from "node:http"; import https from "node:https"; import tls from "node:tls"; import crypto from "node:crypto"; import fs from "node:fs"; import os from "node:os"; import path from "node:path";4const UP = { host: "127.0.0.1", port: Number(process.env.APP_PORT || 3000) };5let trustedSni = () => false; // set once TLS is up: true only when the SNI-selected certificate is the publicly trusted, unexpired one6const dir = path.join(os.homedir(), ".config/zoo-cloud-studio/tls");7function handler(proto) {8 return (req, res) => {9 const headers = { ...req.headers };10 for (const k of Object.keys(headers)) if (k.toLowerCase().startsWith("x-zcs-") || k.toLowerCase() === "x-forwarded-for") delete headers[k];11 headers["x-zcs-proto"] = proto; headers["x-zcs-sni"] = proto === "https" ? String(req.socket.servername || "").toLowerCase() : ""; headers["x-zcs-cert"] = proto === "https" && trustedSni(req.socket.servername) ? "trusted" : "selfsigned"; headers["x-forwarded-for"] = req.socket.remoteAddress || "";12 const up = http.request({ ...UP, method: req.method, path: req.url, headers }, r => { res.writeHead(r.statusCode || 502, r.headers); r.pipe(res); });13 up.on("error", () => { if (!res.headersSent) res.writeHead(502, { "content-type": "text/plain" }); res.end("upstream unavailable"); });14 req.on("aborted", () => up.destroy()); res.on("close", () => up.destroy());15 req.pipe(up);16 };17}18http.createServer(handler("http")).listen(Number(process.env.HTTP_PORT || 8080), "0.0.0.0", () => console.log("edge http up"));19try {20 // Default certificate = the self-signed preview pair. If a publicly trusted pair exists (issued by scripts/acme-dns01.mjs) it is served for its DNS names via SNI21 // and re-read when the file changes (renewals need no restart). IP-address access keeps the self-signed certificate.22 const def = tls.createSecureContext({ key: fs.readFileSync(path.join(dir, "key.pem")), cert: fs.readFileSync(path.join(dir, "cert.pem")) });23 const tdir = path.join(dir, "trusted"); let tctx = null, tm = 0, names = [], validTo = 0;24 const loadTrusted = () => { try { const m = fs.statSync(path.join(tdir, "fullchain.pem")).mtimeMs; if (m === tm) return; tm = m; tctx = tls.createSecureContext({ key: fs.readFileSync(path.join(tdir, "key.pem")), cert: fs.readFileSync(path.join(tdir, "fullchain.pem")) }); names = fs.readFileSync(path.join(tdir, "names.txt"), "utf8").split(/\s+/).filter(Boolean); validTo = Date.parse(new crypto.X509Certificate(fs.readFileSync(path.join(tdir, "fullchain.pem"))).validTo); console.log("edge: trusted certificate loaded for", names.join(",")); } catch { tctx = null; names = []; validTo = 0; } };25 trustedSni = sn => { loadTrusted(); return !!tctx && validTo > Date.now() && names.includes(String(sn || "").toLowerCase()); };26 loadTrusted();27 const opts = { SNICallback: (sn, cb) => { loadTrusted(); cb(null, tctx && names.includes(String(sn).toLowerCase()) ? tctx : def); }, key: fs.readFileSync(path.join(dir, "key.pem")), cert: fs.readFileSync(path.join(dir, "cert.pem")), minVersion: "TLSv1.2" };28 https.createServer(opts, handler("https")).listen(Number(process.env.HTTPS_PORT || 8443), "0.0.0.0", () => console.log("edge https up"));29} catch (e) { console.error("TLS disabled:", e.message); }30
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 fb22adb on master.
Approval requests
None pending.