Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

855 B
Raw Blame
#!/usr/bin/env bash
set -u; cd "$(dirname "$0")"
fail=0
# The same Node setup.sh uses, found the same way (runtimes.sh).
# shellcheck source=runtimes.sh
. ./runtimes.sh
if harness_node 18; then echo "ok   node $(node --version)"; else fail=1; fi
if [ -f node_modules/@mujoco/mujoco/mujoco.wasm ]; then echo "ok   mujoco $(node -p "require('./node_modules/@mujoco/mujoco/package.json').version") (wasm)"; else echo "miss node_modules/@mujoco/mujoco — run ./setup.sh"; fail=1; fi
if [ -f node_modules/three/build/three.module.js ]; then echo "ok   three $(node -p "require('./node_modules/three/package.json').version")"; else echo "miss node_modules/three — run ./setup.sh"; fail=1; fi
if [ -f public/main.js ] && [ -f public/index.html ]; then echo "ok   pane (public/)"; else echo "miss public/ — this package is incomplete"; fail=1; fi
exit $fail