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-onlyapp/src/app/(marketing)/packages/page.tsx
1import fs from "node:fs";2import path from "node:path";3import crypto from "node:crypto";4import os from "node:os";5import { AvailBadge } from "@/components/marketing";6import { DATA_DIR } from "@/lib/db";7import { httpsBase } from "@/lib/auth";8export const dynamic = "force-dynamic";9export const metadata = { title: "Packages" };10function tlsFingerprint(): string | null { try { return new crypto.X509Certificate(fs.readFileSync(path.join(os.homedir(), ".config/zoo-cloud-studio/tls/cert.pem"))).fingerprint256.replace(/:/g, "").toLowerCase(); } catch { return null; } }11export default async function Packages() {12 let m: any = null; try { m = JSON.parse(fs.readFileSync(path.join(DATA_DIR, "packages", "manifest.json"), "utf8")); } catch {}13 const base = await httpsBase(); const p = m?.packages?.[0]; const fp = tlsFingerprint();14 return <div className="mk-wrap mk-section max-w-3xl"><span className="mk-eyebrow">Zloud Agent</span><h1 className="mt-2 flex flex-wrap items-center gap-3 text-3xl font-semibold tracking-tight">Agent packages <AvailBadge a={p ? "experimental" : "upcoming"} /></h1>15 {!p ? <p className="mt-3 text-muted">No agent package has been published.</p> : <>16 <p className="mt-3 text-muted">The agent is a single dependency-free Node.js file (Node 18+). It connects outbound only, opens no port and runs no remote commands; the only jobs are <code>echo</code> and <code>collect-info</code>. <b>Verified on this host only</b> — not yet tested on a separate server.</p>17 <div className="mt-5 rounded-2xl border border-line bg-surface p-5 text-sm" data-testid="pkg-card"><div className="font-semibold">{p.name} {p.version}</div><dl className="mt-3 space-y-2">18 <div><dt className="text-xs text-muted">Download</dt><dd><a className="text-accent underline" href={`/packages/${p.file}`}>{p.file}</a> · <a className="text-accent underline" href={`/packages/${p.signature}`}>{p.signature}</a></dd></div>19 <div><dt className="text-xs text-muted">SHA-256</dt><dd className="mono break-all text-xs">{p.sha256}</dd></div>20 <div><dt className="text-xs text-muted">Signing key ({m.signing.algorithm}) · id {m.signing.keyId}</dt><dd className="mono break-all text-xs" data-testid="pubkey">{m.signing.publicKey}</dd></div>21 <div><dt className="text-xs text-muted">Server TLS fingerprint (SHA-256) — for <code>--pin</code> while the certificate is self-signed</dt><dd className="mono break-all text-xs">{fp ?? "unavailable"}</dd></div></dl></div>22 <h2 className="mt-6 text-lg font-semibold">Verify, then install</h2>23 <ol className="mt-2 list-decimal space-y-2 pl-5 text-sm text-muted"><li><b>Establish the key independently.</b> Compare the key id and public key above with <code>agent/SIGNING-KEY.txt</code> in the project repository. A key served next to the package only detects corruption, not a malicious server.</li><li>Download the package and signature, then verify: <pre className="mono mt-1 overflow-auto rounded bg-surface2 p-2 text-xs">{`node ${p.file} verify --file ${p.file} --sig ${p.signature} --pubkey <public key>`}</pre></li><li>Create an instance and enrollment token in the console (External VPS), then: <pre className="mono mt-1 overflow-auto rounded bg-surface2 p-2 text-xs">{`node ${p.file} enroll --url ${base} --token <token> --pin ${fp ?? "<fingerprint>"}\nnode ${p.file} run`}</pre></li></ol>24 <p className="mt-4 text-xs text-muted">Tokens are tenant-bound, expire after 15 minutes and work once. The machine-readable index is <a className="text-accent underline" href="/packages/manifest.json">/packages/manifest.json</a>.</p></>}</div>;25}26
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 1c27633 on master.
Approval requests
None pending.