Skip to content

feat(cli): update the active global npm installation #89

Closed

Description

@abruption

Goal

Add rebut update using Aptly's global-install verification as a reference. It should find the npm prefix that owns the running Rebut CLI, including a one-time --prefix on Windows.

Scope

  • Use the npm CLI paired with the running Node executable, verify the active global package and its launcher, and install the verified npm release in the same prefix with lifecycle scripts off.
  • Verify the installed version, report already-current and failure cases, and tell the user to restart MCP hosts. Keep host registration and application state outside the update path.
  • Document the command in the four installation guides.

Acceptance criteria

  • Refuse source, local, linked or unverified installs before mutating npm state. Cover invalid arguments and update failures.
  • Verify a real version transition with an isolated npm prefix on macOS and Windows, including a Windows prefix supplied only during installation.
  • Independently review the implementation and open a Draft PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions