Repository navigation
feat: list the packages StableBar's setup suggests for tools found on the Mac - #28
Merged
Merged
Conversation
This was referenced Nov 1, 2026
M4n0x
force-pushed
the
feat/setup-suggestions
branch
from
November 2, 2026 08:18
29c697e to
d11b281
Compare
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.
Package
None. This adds store data and a check, and changes no package.
suggestions.jsonlists the packages StableBar's setup should suggest when it finds a tool on the Mac, for stablebox/StableBar#405. CI copies it intoindex.jsonassuggestions, so setup reads the list from the Store instead of keeping its own.Changes
suggestions.json: AI usage and Quick ask whenclaudeorcodexis on the login shell's PATH, Homebrew outdated whenbrewis. Each suggestion haswhen(tools, commands on the PATH, and/orapps, bundle IDs) andpackages. It applies when setup finds any one of them.scripts/build-index.sh: writes the list at the top level ofindex.json, next topackages. StableBar'sPackageIndexdecodes onlypackages, so current versions read the new index as before. Package entries and archives don't change.scripts/check-suggestions.sh, run in Lint beforescripts/test.sh: checks the shape, that every ID is a package, and that each suggested package works as soon as it's added: not a theme, has a preview, and every setting has a default. That keeps GitHub notifications out, since its token has no default.scripts/test.sh: scenarios for each problemcheck-suggestions.shreports, and thatbuild-index.shcopies the list into the index. The scratch repositories of the index tests get asuggestions.json, sincebuild-index.shnow reads it.Not in the list yet:
{ "when": { "apps": ["com.if.Amphetamine"] }, "packages": ["amphetamine"] }.AI usage works with only one of Claude Code and Codex signed in since #29, published as 1.2.6.
Access
No package changes.
Testing
./scripts/check-suggestions.shpasses on the file../scripts/test.shpasses, 44 scenarios. The 13 new ones check that it passes a valid file and reports invalid JSON, not a list, an unknown key, a package listed twice, an emptywhen, a path intools, a name without a dot inapps, a package that doesn't exist, a missing preview, a theme and a setting without a default, and that the index lists the suggestions. With the suggestions taken out ofbuild-index.sh, that last one fails../scripts/build-index.shin a scratch copy of this branch, rebased onmain, with the liveindex.jsonas the previous index: the 10 entries are identical to the live ones, no archive is written, and the index lists the suggestions.scripts/, actionlint on the workflow,check-one-package.shandcheck-versions.shagainstmain, and./scripts/update-readme.shleaves the README unchanged.PackageIndexon StableBarmain.Claude Opus 5.5 via Claude Code