Files
zeekayandGitHub 8849eef91e release: name the repository the run is in (hanzoai/dev is the app now) (#26)
* release: name the repository the run is in, not the one it was (hanzoai/dev is the app now)

The release API calls, the Homebrew formula, the npm fallback download and the
Windows diagnose script named hanzoai/dev. That name now belongs to the app, so
a run uploaded into a release that is not there. The workflow and the formula
read GITHUB_REPOSITORY; the shipped files name hanzoai/dev-v1.

Claude-Session: https://claude.ai/code/session_015XYKLn69gF4x75RWePpDBV

* The repository is hanzoai/dev-v1: clone URLs, the npm download, the formula, crate and package metadata

hanzoai/dev is the app now. npm/bin/coder.js and the committed formula still
downloaded releases from it.

Claude-Session: https://claude.ai/code/session_015XYKLn69gF4x75RWePpDBV
2026-11-21 01:58:51 -08:00

46 lines
1.5 KiB
Ruby

class HanzoDev < Formula
desc "Local AI coding agent for your terminal, powered by Hanzo AI"
homepage "https://github.com/hanzoai/dev-v1"
version "0.6.91"
license "Apache-2.0"
on_macos do
on_arm do
url "https://github.com/hanzoai/dev-v1/releases/download/v#{version}/dev-aarch64-apple-darwin.tar.gz"
sha256 "2a4f5eb12bba0aac65f7d9cc7d577ea962913bea9c4ef2a21b2a4825fc814913"
end
on_intel do
url "https://github.com/hanzoai/dev-v1/releases/download/v#{version}/dev-x86_64-apple-darwin.tar.gz"
sha256 "264992535a1c7f027fb67769baaa7183ca24155f45bb7519302dc3ebfd30739d"
end
end
on_linux do
on_arm do
url "https://github.com/hanzoai/dev-v1/releases/download/v#{version}/dev-aarch64-unknown-linux-musl.tar.gz"
sha256 "1bb091624b6458087a79929c653dc8239d34eead9a7d012bb3b10207e817eeca"
end
on_intel do
url "https://github.com/hanzoai/dev-v1/releases/download/v#{version}/dev-x86_64-unknown-linux-musl.tar.gz"
sha256 "69730db8e3261b6a3bd2ca5bad27b4c04480e28d0e341a7c7dcc663f84a3c8f7"
end
end
livecheck do
url :stable
strategy :github_latest
end
def install
# Installs `dev` ONLY. It must not also write a `hanzo` shim: `hanzo` is the
# Hanzo CLI (Formula/hanzo.rb), a different program. A shim here would make
# `hanzo` mean "the dev coding assistant" for anyone who installed this
# formula first, and would collide with hanzo.rb on the same filename.
bin.install Dir["dev-*"].first => "dev"
end
test do
system "#{bin}/dev", "--help"
end
end