-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathomni.rb
More file actions
50 lines (44 loc) · 1.73 KB
/
Copy pathomni.rb
File metadata and controls
50 lines (44 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
class Omni < Formula
desc "Semantic Signal Engine: less noise, more signal, the right signal"
homepage "https://github.com/fajarhide/omni"
version "0.7.7"
license "MIT"
on_macos do
on_arm do
url "https://github.com/fajarhide/omni/releases/download/v#{version}/omni-v#{version}-aarch64-apple-darwin.tar.gz"
sha256 "602bd0a00c705132da7cc17833e4e82399222dd19098a3b55fd8c195ffe10f22"
end
on_intel do
url "https://github.com/fajarhide/omni/releases/download/v#{version}/omni-v#{version}-x86_64-apple-darwin.tar.gz"
sha256 "5e4077391299f1137004269731582006747df02cae57d7cfb6bdae2c290a8b15"
end
end
on_linux do
on_arm do
url "https://github.com/fajarhide/omni/releases/download/v#{version}/omni-v#{version}-aarch64-unknown-linux-musl.tar.gz"
sha256 "1b7c3be1c768f040da7e287b4a2b9af620ff0ede15f3f5a572dfabee550d0dcd"
end
on_intel do
url "https://github.com/fajarhide/omni/releases/download/v#{version}/omni-v#{version}-x86_64-unknown-linux-musl.tar.gz"
sha256 "a78e6c6dddba54786d57475e6e4db6c931bafdda6f877b9a8391d057c20c2e4f"
end
end
def install
bin.install "omni"
end
def caveats
<<~EOS
Quick start:
omni init # Initialize OMNI setup (interactive)
omni doctor # Verify installation
omni stats # View token savings
OMNI works automatically — no configuration needed.
Hooks intercept Claude Code tool outputs and distill them in real-time.
EOS
end
test do
assert_match "omni", shell_output("#{bin}/omni version")
assert_match "Signal Report", shell_output("#{bin}/omni stats 2>&1", 0)
assert_match "OMNI Doctor", shell_output("#{bin}/omni doctor 2>&1", 0)
end
end