Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cursor/environment.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "reqlan",
"install": "rustup toolchain install stable --profile minimal && rustup component add rustfmt clippy && rustup default stable && pnpm install --frozen-lockfile && node scripts/ensure-host-native.mjs && pnpm run build:tsc"
"install": "bash scripts/cloud-agent-install.sh"
}
36 changes: 36 additions & 0 deletions scripts/cloud-agent-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env bash
# Idempotent Cloud Agent install for the reqlan workspace.
# Runs after checkout. Exits when finished.
set -euo pipefail

cd "$(dirname "$0")/.."

if [ -s "${NVM_DIR:-$HOME/.nvm}/nvm.sh" ]; then
# shellcheck disable=SC1091
. "${NVM_DIR:-$HOME/.nvm}/nvm.sh"
fi

export RUSTUP_HOME=/usr/local/rustup
export CARGO_HOME=/usr/local/cargo
export PATH="${CARGO_HOME}/bin:${PATH}"
hash -r

rustup toolchain install stable --profile minimal --component rustfmt,clippy
rustup default stable

if ! command -v pnpm >/dev/null 2>&1; then
corepack enable
corepack prepare pnpm@12.10.1 --activate
fi

# Prefer the Node that owns pnpm. The agent runtime can shadow `node` on PATH.
export PATH="$(dirname "$(command -v pnpm)"):${PATH}"
hash -r

echo "node $(node -v) ($(command -v node))"
echo "pnpm $(pnpm -v) ($(command -v pnpm))"
echo "rustc $(rustc --version)"

pnpm install --frozen-lockfile
node scripts/ensure-host-native.mjs
pnpm run build:tsc
Loading