Skip to content

feat(cli): add rebut update for global npm installs - #90

Merged
abruption merged 2 commits into
mainfrom
feat/89-npm-update
Nov 22, 2026
Merged

abruption merged 2 commits into
mainfrom
feat/89-npm-update

Conversation

@abruption

Copy link
Copy Markdown
Owner

Issue

Closes #89

Problem and result

  • Add rebut update for the active global npm installation. Verify its launcher and prefix before running the npm CLI paired with Node, including when --prefix was used only at installation.
  • Resolve npm's latest tag and install the exact stable version in that prefix with lifecycle scripts disabled. Serialize Rebut updates per prefix and verify the installed result.
  • Document restart, re-registration, and recovery in all four installation guides. Use Aptly's global updater as a reference.

Validation

  • Typecheck, CLI and Worker dry-run build, 270 tests, package smoke, and the POSIX path of the Windows probe harness passed.
  • On macOS with nvm (Node.js 24.22.3) and physical Windows 10 x64 (Node.js 24.22.1), installed a test tarball labeled 0.4.0 in separate one-time prefixes and ran rebut update through the npm launchers with npm JSON output enabled. Both installed the public 0.4.1 in the same prefix and left the fixture Rebut and Codex settings files byte-identical. The test tarball contained the new updater.
  • On macOS, also checked already-current behavior and confirmed that a competing lock and npm offline mode prevent installation.
  • Claude Opus 5.5 and Gemini 4 Hydrogen Medium independently reviewed the same patch. Applied their findings on locking, npm configuration, install interruption and recovery. A targeted follow-up confirmed the revised update code.

@abruption
abruption marked this pull request as ready for review November 22, 2026 04:03
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T05:16:53.848056Z 1dbc8ed New commits
🔒 Security Review ✅ Completed 2026-11-22T05:17:20.173017Z 1dbc8ed New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@abruption
abruption merged commit 89a9b8a into main Nov 22, 2026
8 checks passed
@abruption
abruption deleted the feat/89-npm-update branch November 22, 2026 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(cli): update the active global npm installation

1 participant