Repository navigation
feat(cli): add raven upgrade command - #112
Merged
Merged
Conversation
Run uv replacement from an external isolated Python helper so Windows does not keep the active Raven entrypoint locked. Validate installation targets, preserve custom uv directories, and return the final install status.
cyfyifanchen
marked this pull request as ready for review
July 12, 2026 07:00
arelchan
pushed a commit
that referenced
this pull request
Jul 13, 2026
## Summary Bump project version 0.1.3 -> 0.1.4 to cut the next patch release. Ships the four fixes/features merged since v0.1.3: `raven upgrade` command (#112), onboard oauth browser login (#110), plugin dir on sys.path (#92), and orjson as a direct dependency (#116). Lockfile synced via `uv lock`. ## Type - [ ] Fix - [ ] Feature - [ ] Docs - [ ] CI / tooling - [ ] Refactor - [x] Other ## Verification - [x] Relevant lint / type checks pass locally ``` python3 scripts/check_commit_messages.py origin/main..HEAD # pass uv lock # raven 0.1.3 -> 0.1.4 ``` ## Risk - [x] Backward compatibility considered Version-only bump; no runtime code changed. The release tag (v0.1.4) is pushed after this merges. ## Related Issues N/A Co-authored-by: Claude (claude-opus-4-8) <noreply@anthropic.com>
KevinHuSh
pushed a commit
to KevinHuSh/Raven
that referenced
this pull request
Sep 14, 2026
## Summary - Add `raven upgrade --check` and `raven upgrade` for the latest stable GitHub Release wheel. - Reject editable and unsupported installs, validate release and installation metadata, target the active uv tool directories, and preserve all state under `~/.raven`. - Keep POSIX replacement synchronous. On Windows, launch a whitespace-safe external helper, wait for the uv trampoline to exit, and then replace the unlocked tool. - Add a real uv self-upgrade integration test on Windows, block upgrades inside the active TUI, and document the manual user workflow in both READMEs. Windows returns after scheduling the helper because the running `raven.exe` must exit before uv can replace it. Users must wait for the helper completion message before running Raven again. ## Type - [ ] Fix - [x] Feature - [x] Docs - [x] CI / tooling - [ ] Refactor - [ ] Other ## Verification - `uv run pytest tests/test_cli_upgrade_commands.py tests/integration/test_cli_upgrade_real_uv.py tests/test_cli_smoke.py tests/test_tui_rpc_cli_dispatch.py tests/test_tui_rpc_commands_catalog.py -q` - 187 passed - `uv run ruff check raven/cli/upgrade_commands.py raven/cli/commands.py raven/tui_rpc/methods/cli_dispatch.py tests/test_cli_upgrade_commands.py tests/integration/test_cli_upgrade_real_uv.py tests/test_cli_smoke.py tests/test_tui_rpc_cli_dispatch.py` - passed - `uv run ruff format --check raven/cli/upgrade_commands.py raven/cli/commands.py raven/tui_rpc/methods/cli_dispatch.py tests/test_cli_upgrade_commands.py tests/integration/test_cli_upgrade_real_uv.py tests/test_cli_smoke.py tests/test_tui_rpc_cli_dispatch.py` - passed - `npm test --prefix ui-tui -- src/__tests__/branding.test.tsx` - 13 passed - `npm run lint --prefix ui-tui` - passed with 0 errors and 22 existing warnings - `npm run lint:rpc --prefix ui-tui && npm run type-check --prefix ui-tui` - passed - `make check-commits && PR_TITLE='feat(cli): add raven upgrade command' make check-pr-title && make check-large-files` - passed - Native Windows end-to-end confirmation is provided by the `Windows self-upgrade` PR check. - [x] Relevant tests pass locally - [x] Relevant lint / type checks pass locally - [x] User-facing docs or screenshots are updated when needed ## Risk - [x] Security impact considered - [x] Backward compatibility considered - [x] Rollback path is clear for risky changes ## Related Issues Closes EverMind-AI#111
KevinHuSh
pushed a commit
to KevinHuSh/Raven
that referenced
this pull request
Sep 14, 2026
## Summary Bump project version 0.1.3 -> 0.1.4 to cut the next patch release. Ships the four fixes/features merged since v0.1.3: `raven upgrade` command (EverMind-AI#112), onboard oauth browser login (EverMind-AI#110), plugin dir on sys.path (EverMind-AI#92), and orjson as a direct dependency (EverMind-AI#116). Lockfile synced via `uv lock`. ## Type - [ ] Fix - [ ] Feature - [ ] Docs - [ ] CI / tooling - [ ] Refactor - [x] Other ## Verification - [x] Relevant lint / type checks pass locally ``` python3 scripts/check_commit_messages.py origin/main..HEAD # pass uv lock # raven 0.1.3 -> 0.1.4 ``` ## Risk - [x] Backward compatibility considered Version-only bump; no runtime code changed. The release tag (v0.1.4) is pushed after this merges. ## Related Issues N/A Co-authored-by: Claude (claude-opus-4-8) <noreply@anthropic.com>
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
raven upgrade --checkandraven upgradefor the latest stable GitHub Release wheel.~/.raven.Windows returns after scheduling the helper because the running
raven.exemust exit before uv can replace it. Users must wait for the helper completion message before running Raven again.Type
Verification
uv run pytest tests/test_cli_upgrade_commands.py tests/integration/test_cli_upgrade_real_uv.py tests/test_cli_smoke.py tests/test_tui_rpc_cli_dispatch.py tests/test_tui_rpc_commands_catalog.py -q- 187 passeduv run ruff check raven/cli/upgrade_commands.py raven/cli/commands.py raven/tui_rpc/methods/cli_dispatch.py tests/test_cli_upgrade_commands.py tests/integration/test_cli_upgrade_real_uv.py tests/test_cli_smoke.py tests/test_tui_rpc_cli_dispatch.py- passeduv run ruff format --check raven/cli/upgrade_commands.py raven/cli/commands.py raven/tui_rpc/methods/cli_dispatch.py tests/test_cli_upgrade_commands.py tests/integration/test_cli_upgrade_real_uv.py tests/test_cli_smoke.py tests/test_tui_rpc_cli_dispatch.py- passednpm test --prefix ui-tui -- src/__tests__/branding.test.tsx- 13 passednpm run lint --prefix ui-tui- passed with 0 errors and 22 existing warningsnpm run lint:rpc --prefix ui-tui && npm run type-check --prefix ui-tui- passedmake check-commits && PR_TITLE='feat(cli): add raven upgrade command' make check-pr-title && make check-large-files- passedNative Windows end-to-end confirmation is provided by the
Windows self-upgradePR check.Relevant tests pass locally
Relevant lint / type checks pass locally
User-facing docs or screenshots are updated when needed
Risk
Related Issues
Closes #111