Skip to content

feat: install vgv_ai from Homebrew or a shell script - #116

Closed
unicoderbot[bot] wants to merge 1 commit into
mainfrom
vgv-ai-bot/issue-113
Closed

unicoderbot[bot] wants to merge 1 commit into
mainfrom
vgv-ai-bot/issue-113

Conversation

@unicoderbot

@unicoderbot unicoderbot Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Warning

The coding agent reported this implementation is incomplete.
Homebrew publishing needs the VeryGoodOpenSource/homebrew-tap repo and a HOMEBREW_TAP_TOKEN secret, which don't exist yet.

This PR has been opened as a draft. Review the diff against the original issue before marking it ready for review.

Summary

vgv_ai could only be installed with dart pub global activate, which requires the Dart SDK 3.13+. This PR adds two install paths that use prebuilt binaries and don't need Dart, and makes the CLI aware of how it was installed.

  • Install methods: Homebrew (brew install verygoodopensource/tap/vgv_ai) and install.sh, which picks the binary for the OS and arch, checks the SHA-256 checksum, and installs to ~/.local/bin or a directory you choose. pub.dev stays supported.
  • Release automation: each vX.Y.Z release compiles vgv_ai with dart compile exe for macOS and Linux on arm64 and x64, and attaches the archives and checksums to the GitHub release. The workflow then regenerates the Homebrew formula in VeryGoodOpenSource/homebrew-tap and pushes it.
  • Install-aware updates: a new CliInstallation is injected into the command runner and UpdateCommand. It uses Platform.resolvedExecutable to tell pub.dev, Homebrew and install.sh installs apart.
    • A pub.dev install still updates itself with dart pub global activate.
    • A Homebrew install is told to run brew upgrade verygoodopensource/tap/vgv_ai.
    • An install.sh install is told to rerun the script, passing the install directory when it isn't the default.
    • The post-command update prompt suggests the matching command too.
  • Docs: the README Installation section lists all three methods and the update section explains the per-install behavior. AGENTS.md and CONTRIBUTING.md describe the injected CliInstallation and the binary and Homebrew release flow.

Notes

  • Windows remains out of scope (WSL only).
  • The release workflow pushes to the tap using the HOMEBREW_TAP_TOKEN secret, which needs to be configured with push access to VeryGoodOpenSource/homebrew-tap.
  • Tests cover the update prompt for a Homebrew install, and update for Homebrew and script installs. They check that update names the command, doesn't call pub, and does nothing when already on the latest version.

Closes #113

Closes #113

Co-authored-by: marcossevilla <marcossevilla@users.noreply.github.com>
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.

feat: install vgv_ai from Homebrew or a shell script

1 participant