Skip to content

feat: list the packages StableBar's setup suggests for tools found on the Mac - #28

Merged
M4n0x merged 1 commit into
mainfrom
feat/setup-suggestions
Nov 2, 2026
Merged

M4n0x merged 1 commit into
mainfrom
feat/setup-suggestions

Conversation

@M4n0x

@M4n0x M4n0x commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Package

None. This adds store data and a check, and changes no package. suggestions.json lists the packages StableBar's setup should suggest when it finds a tool on the Mac, for stablebox/StableBar#405. CI copies it into index.json as suggestions, so setup reads the list from the Store instead of keeping its own.

Changes

  • suggestions.json: AI usage and Quick ask when claude or codex is on the login shell's PATH, Homebrew outdated when brew is. Each suggestion has when (tools, commands on the PATH, and/or apps, bundle IDs) and packages. It applies when setup finds any one of them.
  • scripts/build-index.sh: writes the list at the top level of index.json, next to packages. StableBar's PackageIndex decodes only packages, so current versions read the new index as before. Package entries and archives don't change.
  • scripts/check-suggestions.sh, run in Lint before scripts/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 problem check-suggestions.sh reports, and that build-index.sh copies the list into the index. The scratch repositories of the index tests get a suggestions.json, since build-index.sh now reads it.
  • CONTRIBUTING and AGENTS.md: the file, its rules, and that maintainers decide what goes in it. The README doesn't mention it until setup shows suggestions.

Not in the list yet:

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.sh passes on the file. ./scripts/test.sh passes, 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 empty when, a path in tools, a name without a dot in apps, 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 of build-index.sh, that last one fails.
  • ./scripts/build-index.sh in a scratch copy of this branch, rebased on main, with the live index.json as the previous index: the 10 entries are identical to the live ones, no archive is written, and the index lists the suggestions.
  • ShellCheck 0.11.0 passes on every script in scripts/, actionlint on the workflow, check-one-package.sh and check-versions.sh against main, and ./scripts/update-readme.sh leaves the README unchanged.
  • Not checked: StableBar reading the key, since setup doesn't yet (StableBar#405). That current versions ignore it comes from reading PackageIndex on StableBar main.

Claude Opus 5.5 via Claude Code

@M4n0x
M4n0x force-pushed the feat/setup-suggestions branch from 29c697e to d11b281 Compare November 2, 2026 08:18
@M4n0x
M4n0x merged commit a01b249 into main Nov 2, 2026
3 checks passed
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