feat(install): adopt pnpm 11 allowBuilds reviews#364
Conversation
Greptile SummaryThis PR migrates build-approval writes from the pnpm v10 Confidence Score: 5/5Safe to merge — logic is correct, both prior review concerns are addressed, and the new behavior is well-covered by unit and BATS tests. No P0 or P1 findings. The two previously flagged bugs (empty key for bare scoped packages, unconditional overwrite revoking approved builds) are both fixed with explicit guards and new unit tests. The behavioral change (creating No files require special attention. Important Files Changed
Reviews (4): Last reviewed commit: "fix(docs): ignore generated pnpm workspa..." | Re-trigger Greptile |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d557376. Configure here.

Summary
onlyBuiltDependenciesto pnpm 11-styleallowBuildsentries.allowBuildsasfalse, and haveaube approve-buildsflip selected entries totrue.onlyBuiltDependencies/neverBuiltDependenciesas read-compatible inputs, and update docs, generated CLI help, and BATS coverage.Validation
cargo fmt --checkcargo test -p aube-manifest workspace::tests::add_to_allow_builds -- --nocapturecargo test -p aube --bin aubecargo clippy --all-targets -- -D warningsmise run test:bats test/approve_builds.batsmise run test:bats test/lifecycle_scripts.batsmise run test:bats test/global_install.batsmise run docs:buildNote
Medium Risk
Changes dependency-build approval persistence and makes
installwrite/updatepnpm-workspace.yaml, which could affect build-script execution behavior and create new files in repos. Logic is localized but touches install-time safety gates and policy state transitions.Overview
Switches build-script review/approval persistence to pnpm v11’s
allowBuildsreview map (writingtrue/falseentries) instead of appending toonlyBuiltDependencies.aube installnow auto-seeds unreviewed build-script packages into workspaceallowBuildsasfalse(and errors/warns accordingly), whileaube approve-buildsflips selected entries totrue; when no workspace YAML exists, the code now createspnpm-workspace.yamlrather than writing topackage.json.Updates CLI help text, settings/docs, and BATS/unit tests to reflect the new review workflow and file-writing behavior.
Reviewed by Cursor Bugbot for commit f76b880. Bugbot is set up for automated code reviews on this repo. Configure here.