Rho is not available on npm. Nothing is published under the @graycodeai
scope, no workflow publishes these packages, and every package.json in this
directory sets "private": true so npm publish refuses to run. Install Rho
as described in the README.
This directory is scaffolding for a future npm channel:
rho/— the meta package@graycodeai/rho. Itspostinstall.jscopies the binary from the matching platform package into~/.rho/binusing the same versioned-file-plus-symlink layout asinstall.sh.rho-<platform>-<arch>/— one package per target (darwin, linux, win32 × x64, arm64), each holding a brotli-compressed binary.rho/scripts/assemble-platform-packages.js— fills the platform packages from GoReleaser'sdist/output and stamps every package, including the meta package'soptionalDependencies, with the release version (the repositoryVERSIONfile, orRHO_NPM_VERSION).
To try the assembly locally without publishing:
goreleaser release --snapshot --clean --skip=publish,sign
cp -R npm VERSION "$(mktemp -d)"/ # work on a copy; assembly rewrites package.json files
# in the copy: cd npm/rho && DIST_ROOT=<repo>/dist node scripts/assemble-platform-packages.jsBefore this channel can be offered, all of the following are needed:
- An npm organization
graycodeaiowned by GrayCode, with npm trusted publishing (GitHub OIDC) configured for this repository's release workflow. - A release job that runs after GoReleaser: assemble the packages, publish the
six platform packages, then the meta package, with
--provenance. - A
THIRD_PARTY_NOTICES.md(for example generated withgo-licenses); thefileslists reference it and the assemble script copies it when present. - Removing
"private": truefrom the packages in the same change, and adding the npm command back to the README install section.