diff --git a/AGENTS.md b/AGENTS.md index cfe4fa8..8ad6d7b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -36,6 +36,6 @@ the installed CLI useful without requiring repository knowledge. ## Development -Use the private home-ops bootstrap for installed use and `.venv` for development. Run the full +Use the private home-config bootstrap for installed use and `.venv` for development. Run the full format, lint, secret-scan, and test sequence documented in `README.md` before publishing. Never make a live hardware write as part of an automated test. diff --git a/README.md b/README.md index 7fb6abe..ff015a8 100644 --- a/README.md +++ b/README.md @@ -29,14 +29,14 @@ Python 3.11 or newer is required. ## Install ```bash -cd /path/to/private/home-ops +cd /path/to/private/home-config ./bin/bootstrap-ctls poolctl ``` -The private `home-ops` bootstrap is the canonical installer: it populates the +The private `home-config` bootstrap is the canonical installer: it populates the real adapter inventory, calls this repository's stable `script/install` contract, and creates `/usr/local/bin/poolctl` backed by an isolated system -environment under `/usr/local/lib/home-ops/ctls`. +environment under `/usr/local/lib/home-config/ctls`. ## Configure private adapter data diff --git a/script/install b/script/install index bac752c..c22f6cf 100755 --- a/script/install +++ b/script/install @@ -4,7 +4,7 @@ set -eu repo_root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) name=poolctl install_prefix=${CTL_INSTALL_PREFIX:-/usr/local} -venv_root=${CTL_VENV_ROOT:-$install_prefix/lib/home-ops/ctls} +venv_root=${CTL_VENV_ROOT:-$install_prefix/lib/home-config/ctls} bin_dir=${CTL_BIN_DIR:-$install_prefix/bin} venv="$venv_root/$name" python=${PYTHON:-python3} @@ -14,7 +14,7 @@ if ! command -v "$python" >/dev/null 2>&1; then exit 1 fi -install -d -m 755 "$install_prefix/lib" "$install_prefix/lib/home-ops" "$venv_root" "$bin_dir" +install -d -m 755 "$install_prefix/lib" "$install_prefix/lib/home-config" "$venv_root" "$bin_dir" "$python" -m venv --clear "$venv" "$venv/bin/python" -m pip install --disable-pip-version-check "$repo_root" chmod -R a+rX "$venv"