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/deploy.sh

1#!/usr/bin/env bash
2# BUILD -> RESTART -> HEALTH CHECK -> RECORD. Usage: scripts/deploy.sh [version]
3set -uo pipefail
4source "$(dirname "$0")/env.sh"; cd "$ROOT/app"
5VERSION="${1:-$(node -p "require('./package.json').version")}"
6COMMIT="$(git -C "$ROOT" rev-parse --short HEAD 2>/dev/null || echo none)"
7IP="$(curl -fsS -m 5 https://api.ipify.org 2>/dev/null || hostname -I | awk '{print $1}')"
8URL="http://$IP:$PORT (read-only) | https://$IP:$HTTPS_PORT"
9mkdir -p "$ROOT/.runtime" data
10TOKEN_FILE="$HOME/.config/zoo-cloud-studio/admin-token"
11if [ ! -f "$TOKEN_FILE" ]; then mkdir -p "$(dirname "$TOKEN_FILE")"; umask 077; openssl rand -hex 24 > "$TOKEN_FILE"; echo "created access token file (not printed)"; fi
12LOG="$ROOT/.runtime/build.log"
13if ! npx next build > "$LOG" 2>&1; then node scripts/record-deployment.mjs "$VERSION" "$COMMIT" failed "$URL" "build failed" "$(tail -c 3000 "$LOG")"; echo "BUILD FAILED"; tail -20 "$LOG"; exit 1; fi
14[ -d public/monaco-vs ] || cp -r node_modules/monaco-editor/min/vs public/monaco-vs
15node "$ROOT/scripts/build-agent.mjs" >/dev/null
16"$ROOT/scripts/stop-app.sh"; sleep 1
17"$ROOT/scripts/ensure-running.sh"
18for i in $(seq 1 30); do
19 if curl -fsS -m 3 "http://127.0.0.1:$PORT/api/health" >/dev/null 2>&1; then OK=1; break; fi; sleep 1
20done
21if [ "${OK:-0}" = 1 ]; then
22 CODES=""; for p in / /projects /infrastructure /progress /design-assets/manifest.json; do CODES+="$p=$(curl -s -o /dev/null -w '%{http_code}' "http://127.0.0.1:$PORT$p") "; done
23 SC=$(curl -sk -m 5 -o /dev/null -w '%{http_code}' "https://127.0.0.1:$HTTPS_PORT/api/health"); CODES+="https=$SC"
24 node scripts/record-deployment.mjs "$VERSION" "$COMMIT" success "$URL" "health ok; $CODES" "built and started (app :$APP_PORT, edge :$PORT/:$HTTPS_PORT)"
25 echo "DEPLOYED $VERSION ($COMMIT) -> $URL | $CODES"
26else
27 node scripts/record-deployment.mjs "$VERSION" "$COMMIT" failed "$URL" "health check failed" "$(tail -c 3000 "$ROOT/.runtime/app.log")"; echo "HEALTH CHECK FAILED"; exit 1
28fi
29

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 1c27633 on master.

Approval requests

None pending.