Skip to content
  1. Home
  2. workspace
Checking…
Demo 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

scripts/build-agent.mjs

1// Builds the signed agent package into app/data/packages (served at /packages). Idempotent; key generated once and kept outside the repo (0600).
2import fs from "node:fs"; import os from "node:os"; import path from "node:path"; import crypto from "node:crypto";
3const root = path.resolve(path.dirname(new URL(import.meta.url).pathname), ".."); const out = path.join(root, "app/data/packages"); fs.mkdirSync(out, { recursive: true });
4const keyDir = path.join(os.homedir(), ".config/zoo-cloud-studio/signing"); const keyFile = path.join(keyDir, "agent-ed25519.pem"); fs.mkdirSync(keyDir, { recursive: true, mode: 0o700 });
5if (!fs.existsSync(keyFile)) { const { privateKey } = crypto.generateKeyPairSync("ed25519"); fs.writeFileSync(keyFile, privateKey.export({ type: "pkcs8", format: "pem" }), { mode: 0o600 }); }
6const priv = crypto.createPrivateKey(fs.readFileSync(keyFile)); const pubDer = crypto.createPublicKey(priv).export({ type: "spki", format: "der" });
7const src = fs.readFileSync(path.join(root, "agent/zoo-cloud-agent.mjs")); const version = /const VERSION = "([^"]+)"/.exec(src.toString())[1]; const name = `zoo-cloud-agent-${version}.mjs`;
8fs.writeFileSync(path.join(out, name), src); const sig = crypto.sign(null, src, priv); fs.writeFileSync(path.join(out, name + ".sig"), sig.toString("base64") + "\n");
9const manifest = { schema: 1, generated: new Date().toISOString(), packages: [{ name: "zoo-cloud-agent", version, file: name, signature: name + ".sig", sha256: crypto.createHash("sha256").update(src).digest("hex"), bytes: src.length, platform: "any (Node >= 18)", algorithm: "ed25519" }],
10 signing: { status: "configured", algorithm: "ed25519", keyId: crypto.createHash("sha256").update(pubDer).digest("hex").slice(0, 16), publicKey: pubDer.toString("base64"), note: "Obtain the public key through a channel you already trust; a key served alongside the package only detects corruption." } };
11fs.writeFileSync(path.join(out, "manifest.json"), JSON.stringify(manifest, null, 2)); fs.writeFileSync(path.join(root, "agent/SIGNING-KEY.txt"), `Zoo Cloud Agent release signing key (Ed25519, SPKI DER, base64)\nkey id: ${manifest.signing.keyId}\npublic key: ${manifest.signing.publicKey}\n\nThis file is committed to the repository so the key can be checked independently of the server that distributes the package.\n`);
12console.log("agent", version, "signed, key", manifest.signing.keyId);
13

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 692573d on master.

Approval requests

None pending.