Make installer bootstrap opt-in with install=True

PI
1d ago
+415-109

INSTALLER_BINARY() could bootstrap a missing package manager during discovery. For example, plain abxpkg env iterated the default providers and attempted Linuxbrew installation and Nix installer download without a binary request or --install.

Make INSTALLER_BINARY(..., *, install=False) the public contract across the base class and every provider override. Default and uncached lookups resolve existing installers or report unavailability. Actual install/update setup and installer capability checks explicitly pass install=True. Nix, uv, Cargo, and pnpm guard their own bootstrap paths; pnpm also keeps Node/npm dependency discovery from installing unless explicitly authorized.

Environment export uses the public API again, preserving provider-specific managed installer lookup. Update existing bootstrap tests and the documented API/example to opt in. Duplicate-install ordering is outside this PR.

Validation:

  • Linux x86-64 Docker regression checks direct Brew/Nix/pnpm/Cargo default, explicit-false, and uncached lookups; env/activate and default provider export do not bootstrap.
  • 23 focused Binary/CLI/bootstrap tests pass, plus real uv/pnpm opt-in bootstrap, pnpm 20-process concurrent bootstrap, managed pip execution, and Linux managed Node/pnpm bootstrap checks.
  • Full archivebox install succeeds in a Linux container with preinstalled dependencies, without creating Brew/Nix installations.
  • Commit lint, formatting, ty, and pyright checks pass.

Related to #52. The issue report does not identify the original triggering command. Merged current main, which fixes the install-argument and security-warning regressions exposed by the earlier run. Provider tests now explicitly provision missing installers before asserting lookup-only behavior. Eight focused cases and the security-warning regression in a clean Linux container pass; All 44 jobs in the Linux CI run pass on b1f8375, including all six previously failing suites. The no-bootstrap regression also uses explicit shell failure branches for its log assertions.