Skip to content

Add ghost formula#78

Merged
chailandau merged 4 commits into
mainfrom
add-ghost-formula
Jun 17, 2026
Merged

Add ghost formula#78
chailandau merged 4 commits into
mainfrom
add-ghost-formula

Conversation

@chailandau

@chailandau chailandau commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

What

Adds a ghost formula so the Block Ghost CLI can be installed via the OSS tap:

brew install block/tap/ghost

Ghost is product-surface composition tooling for AI agents — fingerprints, deterministic checks, advisory review, and comparison. Source: block/ghost.

How it installs

The release artifact is the published npm tarball (anarchitecture-ghost-<version>.tgz), which extracts to a package/ directory containing the built dist/ and package.json. The formula:

  1. Installs package/* into libexec.
  2. Runs npm install --omit=dev for the runtime deps — all pure-JS, so there's no native-module / bottle-relocation concern.
  3. Symlinks dist/bin.js onto the PATH as ghost.

depends_on "node".

Pinned release

Pinned to a real, published release artifact:

The block/ghost release pipeline now cuts npm + GitHub Release + .tgz from a single Changesets publish, so this url/sha256 resolve to a live artifact and the formula is installable.

Auto-bump wiring

Modeled on Formula/sessh.rb. The header comment documents the bump invocation. Until the source-repo autobump is wired (its GitHub App secrets are not yet configured), the formula can be bumped manually:

gh workflow run bump-formula.yaml --repo block/homebrew-tap \
  -f repo=block/ghost -f formula=ghost \
  -f tag=anarchitecture-ghost@<X.Y.Z> \
  -f artifact_url=https://github.com/block/ghost/releases/download/anarchitecture-ghost@<X.Y.Z>/anarchitecture-ghost-<X.Y.Z>.tgz

Ready for review — the pinned release exists and the sha256 is verified.

@chailandau chailandau marked this pull request as ready for review June 17, 2026 15:05
@chailandau chailandau enabled auto-merge (squash) June 17, 2026 15:06
@chailandau chailandau disabled auto-merge June 17, 2026 19:04
@chailandau chailandau enabled auto-merge (squash) June 17, 2026 19:04
@chailandau chailandau merged commit c1840ef into main Jun 17, 2026
4 checks passed
@chailandau chailandau deleted the add-ghost-formula branch June 17, 2026 21:01
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.

4 participants