Skip to content

Commit 8f974c0

Browse files
Update hivemind to v0.2.1
1 parent 5b4812f commit 8f974c0

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

Formula/hivemind.rb

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,54 +3,67 @@ class Hivemind < Formula
33

44
desc "Syncs agentic coding sessions to Weights & Biases"
55
homepage "https://github.com/wandb/agentstream-py"
6-
url "https://github.com/wandb/homebrew-taps/releases/download/hivemind-v0.2.0/hivemind-0.2.0-py3-none-any.whl"
7-
sha256 "12ad9d8a009f6005e929188c94bea0170c9f42362ff87eaea4ee223d0fc1a237"
6+
url "https://github.com/wandb/homebrew-taps/releases/download/hivemind-v0.2.1/hivemind-0.2.1-py3-none-any.whl"
7+
sha256 "d3fcf8bf7c4a1f5b96c2f27c7d498acccb45e19438de08cb1acc7b8b73fc7776"
88
license "MIT"
99

1010
depends_on "[email protected]"
1111

1212
resource "agentstream" do
13-
url "https://github.com/wandb/homebrew-taps/releases/download/hivemind-v0.2.0/agentstream-0.2.0-py3-none-any.whl"
14-
sha256 "bb1a57d1fb5e2685a13250f3be7d5de4825617a5adfe489ad558d02731bc8f47"
13+
url "https://github.com/wandb/homebrew-taps/releases/download/hivemind-v0.2.1/agentstream-0.2.1-py3-none-any.whl"
14+
sha256 "b986271b19b74a1a4fb8e47bb3a1ea222003dc566a96d1719e484f15d5d49eac"
1515
end
1616

1717
def install
18-
venv = virtualenv_create(libexec, "python3.13")
18+
venv = virtualenv_create(libexec, "python3.13", system_site_packages: false)
1919
venv_python = libexec/"bin/python"
2020

2121
# Install agentstream first (hivemind depends on it)
2222
resource("agentstream").stage do
2323
system "python3.13", "-m", "pip",
2424
"--python=#{venv_python}",
25-
"install", Dir["*.whl"].first
25+
"install", "--quiet", Dir["*.whl"].first
2626
end
2727

2828
# Install hivemind with all its dependencies from PyPI
2929
system "python3.13", "-m", "pip",
3030
"--python=#{venv_python}",
31-
"install", Dir["*.whl"].first
31+
"install", "--quiet", Dir["*.whl"].first
3232

3333
bin.install_symlink libexec/"bin/hivemind"
3434
end
3535

3636
def post_install
37+
# Check authentication silently
3738
system bin/"hivemind", "auth-check", "--quiet"
3839

3940
unless $?.success?
4041
opoo <<~EOS
4142
GitHub authentication not configured.
42-
43-
The daemon requires GitHub authentication. Please run:
44-
gh auth login
43+
Run: gh auth login
4544
EOS
4645
end
4746

48-
ohai <<~EOS
49-
To start the hivemind daemon:
50-
brew services start hivemind
47+
# Check if service is running (upgrade scenario)
48+
plist_path = Pathname.new("#{Dir.home}/Library/LaunchAgents/com.wandb.hivemind.plist")
49+
if plist_path.exist?
50+
output = Utils.popen_read("launchctl", "list") rescue ""
51+
if output.include?("com.wandb.hivemind")
52+
ohai "Restart the service to apply the update: brew services restart wandb/taps/hivemind"
53+
end
54+
end
55+
end
56+
57+
def caveats
58+
<<~EOS
59+
To start hivemind now and restart at login:
60+
brew services start wandb/taps/hivemind
5161
5262
Or run manually:
5363
hivemind run
64+
65+
Note: Use the fully-qualified formula name (wandb/taps/hivemind) to avoid
66+
conflicts with the unrelated 'hivemind' package in homebrew-core.
5467
EOS
5568
end
5669

0 commit comments

Comments
 (0)