Skip to content

feat(update): add daemon-driven CLI self-update - #299

Open
AnnatarHe wants to merge 3 commits into
mainfrom
feat/cli-self-update
Open

AnnatarHe wants to merge 3 commits into
mainfrom
feat/cli-self-update

refactor(track): limit the shell hook to starting the daemon

887284f
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project failed Aug 7, 2026 in 1s

77.21% (target 80.00%)

View this Pull Request on Codecov

77.21% (target 80.00%)

Details

Codecov Report

❌ Patch coverage is 52.20930% with 411 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
daemon/auto_update.go 64.56% 60 Missing and 13 partials ⚠️
model/updater_apply.go 46.51% 50 Missing and 19 partials ⚠️
commands/update.go 0.00% 64 Missing ⚠️
commands/daemon.ensure.go 24.19% 46 Missing and 1 partial ⚠️
commands/update_drift.go 54.28% 23 Missing and 9 partials ⚠️
commands/daemon.apply_update.go 62.82% 20 Missing and 9 partials ⚠️
model/updater.go 68.13% 19 Missing and 10 partials ⚠️
model/cli_release.go 0.00% 24 Missing ⚠️
model/updater_state.go 62.50% 10 Missing and 8 partials ⚠️
model/path.go 30.00% 14 Missing ⚠️
... and 2 more

❌ Your project check has failed because the head coverage (77.21%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

Files with missing lines Coverage Δ
commands/gc.go 74.31% <100.00%> (+6.71%) ⬆️
commands/track.go 73.46% <100.00%> (+0.27%) ⬆️
model/config.go 95.15% <100.00%> (+0.59%) ⬆️
model/updater_source.go 100.00% <100.00%> (ø)
commands/detach_unix.go 0.00% <0.00%> (ø)
model/update_lock.go 65.51% <65.51%> (ø)
model/path.go 81.31% <30.00%> (-14.46%) ⬇️
model/updater_state.go 62.50% <62.50%> (ø)
model/cli_release.go 0.00% <0.00%> (ø)
commands/daemon.apply_update.go 62.82% <62.82%> (ø)
... and 6 more

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.