fix(add): stop add -g re-adds from removing other global packages #2025
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.43) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 378 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.355
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2025"
general
weight: 0.35
jdx
aube add -g semver whichput both packages into one shared install, so a lateraube add -g semverreplaced that install and silently deletedwhichand its bin.aube remove -g semvertookwhichwith it too.add -gnow follows pnpm: each space-separated package gets its own isolated install, and a comma-separated list opts into a shared one.Replacing or removing a shared install no longer happens silently:
add -greplaces a shared install and drops packages that were not part of the command, it warns withWARN_AUBE_GLOBAL_GROUP_MEMBERS_REMOVED, naming them and giving the command to reinstall them.remove -glists every package removed along with the named one. Naming two members of the same install no longer reports the second as "Not globally installed".Existing installs: packages that an older aube bundled from a space-separated command are still bundled. Running
add -gagain with all of them splits them. Re-adding only one still removes the others, now with the warning above.Behavior changes: comma-separated arguments were previously rejected as invalid package names. A comma that follows a path, URL, or git
#ref stays part of that argument, so such a spec goes last in a comma-separated list. Space-separated packages are installed one after another, so if one fails, the ones before it stay installed. Because they no longer share a dependency tree, packages that need each other as peers should be passed comma-separated.aube update --helpalso described-gas "Parsed for pnpm compatibility"; it now says that it updates global packages.Verified with unit tests for argument grouping and
test/global_install.bats(34 passing), including new cases for separate installs, shared-install replacement and removal, and splitting a shared install.Fixes #2024
AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: unavailable.
🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Global packages installed as separate arguments get isolated installs; comma-separated packages share one install.
Replacing or removing a shared install affects the entire group. A warning identifies omitted packages and binaries and provides a reinstall command.
Removing one package from a shared install reports the other affected packages.
update -gupdates all global packages by default, or only the named packages.Documentation
* Clarified global install, update, and removal behavior in CLI help and the package manager guide, including how commas in package specifications are handled.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->