Skip to content

feat(cli): add raven upgrade command#112

Merged
cyfyifanchen merged 12 commits into
mainfrom
feat/raven_upgrade_command
Jul 12, 2026
Merged

feat(cli): add raven upgrade command#112
cyfyifanchen merged 12 commits into
mainfrom
feat/raven_upgrade_command

Conversation

@cyfyifanchen

@cyfyifanchen cyfyifanchen commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

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
  • Feature
  • Docs
  • 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.

  • Relevant tests pass locally

  • Relevant lint / type checks pass locally

  • User-facing docs or screenshots are updated when needed

Risk

  • Security impact considered
  • Backward compatibility considered
  • Rollback path is clear for risky changes

Related Issues

Closes #111

@cyfyifanchen cyfyifanchen marked this pull request as ready for review July 12, 2026 07:00
@cyfyifanchen cyfyifanchen merged commit 59ae2ef into main Jul 12, 2026
8 checks passed
@cyfyifanchen cyfyifanchen deleted the feat/raven_upgrade_command branch July 12, 2026 09:01
@0xKT 0xKT mentioned this pull request Jul 13, 2026
8 tasks
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>
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): add a user-facing Raven upgrade command

1 participant