Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ test:
bats tests/test_dynamic_wallpaper.bats
bats tests/test_geoclue_latitude.bats
bats tests/test_brew_preinstall.bats
bats tests/test_ai_tools_brewfile.bats
bats tests/test_validate_brewfiles.bats
bats tests/test_oem_brew.bats
bats tests/test_bonedigger_report.bats
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ brew "llmfit"
brew "llmmanorg/tap/llmman"
brew "mistral-vibe"
brew "qwen-code"
brew "ramalama"
brew "ublue-os/tap/linux-mcp-server"
cask "claude-code"
cask "codex"
Expand Down
41 changes: 41 additions & 0 deletions tests/test_ai_tools_brewfile.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/usr/bin/env bats
# Tests for the Bluefin Agent Mode AI tools bundle.
#
# Asserts the required inventory in both directions so additions and removals
# cannot silently drift: every required tool must be present, and the retired
# RamaLama package must be absent. Pure content assertions — no real Homebrew.
#
# Oh My Pi is intentionally NOT asserted yet: the packaged formula lands in
# ublue-os/homebrew-tap#686, after which the brew line and this assertion are
# added in the same follow-up.
#
# Run: bats tests/test_ai_tools_brewfile.bats

BREWFILE="${BATS_TEST_DIRNAME}/../system_files/shared/usr/share/ublue-os/homebrew/ai-tools.Brewfile"

@test "ai-tools bundle installs llmman as the local inference runtime" {
grep -qFx 'tap "llmmanorg/tap"' "${BREWFILE}"
grep -qFx 'brew "llmmanorg/tap/llmman"' "${BREWFILE}"
}

@test "ai-tools bundle installs the read-only linux-mcp-server diagnostics tool" {
grep -qFx 'brew "ublue-os/tap/linux-mcp-server"' "${BREWFILE}"
}

@test "ai-tools bundle installs Goose as the GUI troubleshooting client" {
grep -qFx 'cask "ublue-os/tap/goose-linux"' "${BREWFILE}"
}

@test "ai-tools bundle installs Jan as the chat application" {
grep -qFx 'flatpak "ai.jan.Jan"' "${BREWFILE}"
}

@test "ai-tools bundle no longer installs retired RamaLama" {
run grep -nw 'ramalama' "${BREWFILE}"
[ "${status}" -ne 0 ]
}

@test "ai-tools bundle stays user-scoped with no privileged install route" {
run grep -nE 'sudo' "${BREWFILE}"
[ "${status}" -ne 0 ]
}
Loading