feat(cli): consolidate maintenance surface under wright update - #441
Merged
Merged
Conversation
Group update operations around user intent: plain 'wright update' covers every Wright-managed component (standalone self-update plus installed first-party providers), 'update self' keeps the standalone contract, and 'update provider [NAME]' replaces the top-level provider namespace. Retire the top-level provider, help, and version commands in favor of --help/--version. Closes #439
A pinned 'wright update --check self --version V' suggested 'wright update', which installs the latest release rather than the checked version. The hint now names 'wright update self --version V' when a version was requested.
Teakowa
enabled auto-merge (squash)
September 29, 2026 21:06
Teakowa
approved these changes
Sep 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wright updatenow resolves every Wright-managed update target: the standalone installation plus already-installed first-party providers. A skipped or failed target (e.g. package-manager-managed Wright) no longer blocks the remaining ones.wright update self [--version V]preserves the standalone self-update contract: exact versions, checksum verification, matched wright/wright-lsp installs, downgrade refusal, and package-manager detection (exit 3 with actionable guidance).wright update providerupdates installed providers only;wright update provider <NAME> [--version V]installs or updates a named provider. Absent optional providers are never installed implicitly.wright update --checkresolves the same target set without modifying anything.provider,help, andversioncommands are retired;--help/--versionare the canonical surfaces.installed()(local, no network) andlatest_version()(pointer-only fetch); bare provider updates no longer downgrade or re-download the active version.Docs (
docs/cli/update.md, command table, machine contract, release notes), CI, release and smoke scripts updated to the new command shape.Closes #439
Test plan
cargo fmt --all -- --checkcargo clippy --workspace --all-targets --all-features -- -D warningscargo test --workspace --all-targets --all-features(all green; 18 update e2e tests cover aggregate/self/provider paths, package-manager skip vs. refuse, absent-provider skip, and exact-version installs)git diff --checkwright version/help/providerexit 2; new subcommand help matches the issue's command shape