Skip to content

feat: update notification and command restructuring#66

Merged
albertgwo merged 7 commits intomainfrom
feat/update-notification-and-command-restructuring
Apr 3, 2026
Merged

feat: update notification and command restructuring#66
albertgwo merged 7 commits intomainfrom
feat/update-notification-and-command-restructuring

Conversation

@albertgwo
Copy link
Copy Markdown
Contributor

Summary

  • Add version check with 24h-cached GitHub API queries and semver comparison to surface update availability
  • Repurpose update command for binary self-update (download + atomic replace); fold plugin refresh into pull
  • Wire update notifications into pull CLI output, TUI dashboard banner (Catppuccin Latte accent colors), and SessionStart hook additionalContext
  • Remove /sync apply action since pull now covers plugin refresh

Test Plan

  • All 20 Go packages pass (go test ./... -count=1)
  • 7/7 hook smoke tests pass (make smoke-hooks), including new update notification case
  • Full binary builds cleanly (make build)
  • Manual: run claude-sync dashboard with a fake ~/.claude-sync/latest-version containing a higher version to verify the purple/lavender/peach banner renders between header and summary
  • Manual: run claude-sync update to verify "up to date" message or download flow
  • Manual: run claude-sync pull to verify update-available line appears at the end when applicable

Adds UpdateAvailable/LatestVersion/CurrentVersion fields to PullResult,
a Version field to PullOptions, and integrates CheckForUpdate plus full
upstream/forked plugin refresh (via UpdateCheck/UpdateApply/UpdateForkedPlugins)
into PullWithOptions after the stale-detection block.

Updates two tests whose assertions assumed stale detection was the only
refresh path.
Capture pull stderr, parse UPDATE_AVAILABLE signal, and include
update context in the hook's additionalContext JSON output. Unify
the two separate JSON output paths (unmanaged project and default)
into a single output block that accumulates both update and project
context. Add smoke test for update notification parsing.
@albertgwo albertgwo merged commit 9313cbd into main Apr 3, 2026
@albertgwo albertgwo deleted the feat/update-notification-and-command-restructuring branch April 3, 2026 19:41
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.

1 participant