Repository navigation
Detect Brainium updates and offer to install them - #27
Merged
Merged
Conversation
Prism checks shortly after launch, every six hours and when Settings → Second brain opens: git fetch for a checkout (compared with its upstream branch), GitHub's latest commit for a downloaded copy (each download now records the commit it came from). - A banner in the hub and the menu bar: "Brainium 0.4.0 is available — you have 0.3.0 (5 changes)" with What's new (the GitHub compare), Skip (this version) and Update. - Settings → Second brain shows the version: up to date, or an Update button with what's new. - A checkout with local changes or commits of its own isn't nagged or touched; Settings says why. - Updating a downloaded copy downloads the new one and swaps it in. - After an update, profiles that were already wired are wired again so they get the new instructions and tools.
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.
Prism now notices when Brainium has moved on and offers to update it, the same way it offers its own updates.
Where it shows
How it checks (15 s after launch, then at most every 6 hours; Settings re-checks if the last check is over an hour old)
git fetch, then compares with the upstream branch. Commits behind, the new version from upstream's package.json and the commit subjects make up the offer. A checkout with local changes or commits of its own is never touched; Settings says why instead..brainium-install.json; copies without one fall back to comparing versions.Updating
git pull --ff-only. Download: fetch the tarball for that commit and swap it in, putting the old copy back if the swap fails.Tested on macOS against sandbox copies: stale checkout (offered, pulled, then up to date), checkout with local edits (blocked with the reason), downloaded copy with an old record (offered, re-downloaded, record updated), fresh clone (nothing offered), Skip hides the offer. Banner and Settings row rendered in light and dark. Builds with no warnings.
Generated by Claude Code