scripts.postinstall = node scripts/postinstall.mjs
Install-time code downloads an unverified remote native archive, stages it locally, activates an executable path, and exposes it to process execution.
1import { spawnSync } from "node:child_process";
2import { createHash, randomUUID } from "node:crypto";
⋯
10// ~/.rudder/bin/jj/<version>/ and puts that directory on PATH for itself and
11// everything it starts: the native dashboard, workers and agents all inherit
12// it. A jj the user installed (brew, cargo, a distro package) always wins.
⋯
15// (`git worktree add --orphan`), and stock macOS and Debian 12 ship git 2.39,
16// so every isolated agent would fail to start on exactly the machines that have
17// nothing installed. 0.40.0 is also what the cloud worker