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.

1.0 KB
Raw Blame
#!/usr/bin/env bash
# Runs once at install, cwd = the install dir. The pane's dependencies — Excalidraw's own package and
# the React it renders with — into node_modules, from the lockfile. Nothing global. Node is this
# machine's, or the one Harness itself runs on (npm comes beside it).
set -euo pipefail
cd "$(dirname "$0")/.."
# shellcheck source=runtimes.sh
. toolchain/runtimes.sh
harness_node 18 || exit 1
command -v npm >/dev/null 2>&1 || { echo "miss npm beside $(command -v node)"; exit 1; }
command -v python3 >/dev/null 2>&1 || { echo "miss python3 (the scene helper and the verdict)"; exit 1; }
echo "     npm ci (Excalidraw $(node -p "require('./package.json').dependencies['@excalidraw/excalidraw']"))"
npm ci --silent --no-audit --no-fund
[ -f node_modules/@excalidraw/excalidraw/dist/excalidraw.production.min.js ] || { echo "miss the Excalidraw bundle after npm ci"; exit 1; }
echo "ok   excalidraw $(node -p "require('@excalidraw/excalidraw/package.json').version") · react $(node -p "require('react/package.json').version")"