Repository navigation
feat: add private package sources - #249
Merged
Merged
Conversation
Teams can now list their own package catalogs next to the StableBar Store and see where each package comes from. - packageSources in config.json: a name and an https index.json in the Store's format, merged by id across includes. URLs can't hold a user name, password, query or fragment. - Tokens per source live in the login Keychain, bound to the host they were entered for. They are sent only there (PRIVATE-TOKEN for GitLab API URLs, Bearer otherwise), dropped on redirects to another host, kept out of the HTTP cache, and unreadable from configuration. - One Store grid for every source, with a source menu, source tags and "Installed from <source>". Package pages say where a package came from, and private packages note that StableBar's maintainers didn't review them. - Each installed package records its source in packages/<id>/.source.json, along with versions installed from a folder. Updates come only from that source, and a source can't take over an ID another source installed or claim a folder copy whose files differ. - Settings → Packages → Sources… adds, checks, edits and removes sources. - stablebar://add-source links open the Add form filled in, without a token. - StableBar --build-source turns package folders into an index and archives; --install-package ID --source SOURCE and a source field in --packages. Closes #248
M4n0x
force-pushed
the
t3/private-package-sources
branch
from
October 23, 2026 03:10
650e108 to
a4e6a08
Compare
This was referenced Oct 23, 2026
|
🎉 This PR is included in version 0.6.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This was referenced Oct 23, 2026
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.
Problem
Teams can't share StableBar packages privately. The Store reads one fixed index, and nothing records where an installed package came from. So StableBar can't tell a team's package from a Store package with the same ID, or know where its updates should come from. Closes #248.
#33 settled "Other repositories: only the curated one" for the Store. This keeps the curated Store as it is and lets people add their own sources on top of it, with the safeguards below.
Changes
index.jsonin the Store's format, listed underpackageSourcesinconfig.json.idacross includes, so a team can share them; packages and profiles can't add them.?queryor#fragment.stablebarandlocalare reserved IDs, and only the public Store can be named "StableBar Store".PRIVATE-TOKENfor GitLab/api/v4/URLs,Authorization: Bearerotherwise.@secret.source:resolves to nothing).packages/<id>/.source.json, plus any versions installed from a folder.packageSourcebatch action does the same from the command line.stablebar://add-source?name=…&url=…opens the Add form filled in.StableBar --build-source PACKAGES OUT [--previous INDEX] [--url URL --name NAME]checks package folders and writes the index and archives in the same layout as stablebar-packages'build-index.sh.--install-package ID --source SOURCEpicks a source. Without--source, it stops when two sources list the ID, or when another source can't be read.--packagesnow lists each package'ssource.docs/packages.mdgains "Private sources", "Tokens" and "Publishing a source" (a Mac, a GitHub workflow on macOS runners, GitLab's package registry).docs/settings.md,docs/configuration.mdanddocs/command-line.mdare updated, andstablebar.schema.jsonhaspackageSources.PackageSourcebadge enum is nowPackageOrigin, freeing the name for configured sources. Inside the loader,packageSourcesbecamepackageBoundaries.Testing
swift teston this commit: 314 XCTest tests pass. Of the 434 Swift Testing tests, onlypopupResizesWithItsContentAndKeepsItsWidthAndTopEdge(animated: true)fails, and it fails because the display was asleep (CGDisplayIsAsleep= 1). No popup code changed.URLProtocoland the ephemeral session;--install-package --sourceand--build-source, with a round trip through the client.StableBar --validateaccepts a scratch configuration with apackageSourcesentry.StableBar --build-source examples/packages <scratch>writes three archives and an index and prints a join link.stablebar://link to a running app;--install-package IDnow reads the configuration to find sources, so a configuration that doesn't load stops it.packageSourceskey.Screenshots (before → after): Store, Installed and package page, Sources sheet, Add form opened from a link.
Merging
One commit, so every merge method gives the same changelog entry. #243 also changes the Store grid's order, so whichever lands second needs a small rebase.
Claude Opus 5.5 via Claude Code