Skip to content

Commit b23660d

Browse files
revert: restore the nanaban name (5.0.1)
The v5.0.0 rename to "slika" was over-scoped. The agent-confusion problem ("nanaban" vs Google's Nano Banana models) was actually caused by stale/broken skill files, which are now fixed — the skill and agent-info manifest state explicitly that nanaban is the router CLI and Nano Banana is one of the model families it serves. Keeps everything else from 5.0.0: nb2-lite + gpt54 models, stable Gemini ids, 14 ref images, auth --check, framework exit codes (0-4), and the distribution-aware update command.
1 parent 5e29e7c commit b23660d

26 files changed

Lines changed: 266 additions & 290 deletions

.github/workflows/release.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
TAG="${GITHUB_REF_NAME#v}"
3030
PKG=$(node -p "require('./package.json').version")
3131
SRC=$(grep -oE "'[0-9]+\.[0-9]+\.[0-9]+'" src/version.ts | head -1 | tr -d "'")
32-
BREW=$(grep -oE 'version "[0-9]+\.[0-9]+\.[0-9]+"' Formula/slika.rb | head -1 | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')
32+
BREW=$(grep -oE 'version "[0-9]+\.[0-9]+\.[0-9]+"' Formula/nanaban.rb | head -1 | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')
3333
echo "tag=$TAG package=$PKG src=$SRC brew=$BREW"
3434
if [[ "$TAG" != "$PKG" ]] || [[ "$TAG" != "$SRC" ]] || [[ "$TAG" != "$BREW" ]]; then
35-
echo "::error::version mismatch: tag=$TAG package.json=$PKG src/version.ts=$SRC Formula/slika.rb=$BREW"
35+
echo "::error::version mismatch: tag=$TAG package.json=$PKG src/version.ts=$SRC Formula/nanaban.rb=$BREW"
3636
echo "::error::run ./scripts/bump-version.sh $TAG locally, commit, re-tag, and re-push."
3737
exit 1
3838
fi
@@ -49,69 +49,69 @@ jobs:
4949
- name: Compute Homebrew formula stanza
5050
id: brew
5151
run: |
52-
ARM=$(shasum -a 256 dist/slika-darwin-arm64 | awk '{print $1}')
53-
MAC=$(shasum -a 256 dist/slika-darwin-x64 | awk '{print $1}')
54-
LINX=$(shasum -a 256 dist/slika-linux-x64 | awk '{print $1}')
55-
LINA=$(shasum -a 256 dist/slika-linux-arm64 | awk '{print $1}')
52+
ARM=$(shasum -a 256 dist/nanaban-darwin-arm64 | awk '{print $1}')
53+
MAC=$(shasum -a 256 dist/nanaban-darwin-x64 | awk '{print $1}')
54+
LINX=$(shasum -a 256 dist/nanaban-linux-x64 | awk '{print $1}')
55+
LINA=$(shasum -a 256 dist/nanaban-linux-arm64 | awk '{print $1}')
5656
VER="${GITHUB_REF_NAME#v}"
5757
{
58-
echo 'class Slika < Formula'
58+
echo 'class Nanaban < Formula'
5959
echo ' desc "Image generation from the terminal (GPT Image 2, Nano Banana, GPT-5 Image)"'
60-
echo ' homepage "https://github.com/paperfoot/slika"'
60+
echo ' homepage "https://github.com/paperfoot/nanaban"'
6161
echo " version \"$VER\""
6262
echo ' license "MIT"'
6363
echo
6464
echo ' on_macos do'
6565
echo ' if Hardware::CPU.arm?'
66-
echo " url \"https://github.com/paperfoot/slika/releases/download/v$VER/slika-darwin-arm64\""
66+
echo " url \"https://github.com/paperfoot/nanaban-cli/releases/download/v$VER/nanaban-darwin-arm64\""
6767
echo " sha256 \"$ARM\""
6868
echo ' else'
69-
echo " url \"https://github.com/paperfoot/slika/releases/download/v$VER/slika-darwin-x64\""
69+
echo " url \"https://github.com/paperfoot/nanaban-cli/releases/download/v$VER/nanaban-darwin-x64\""
7070
echo " sha256 \"$MAC\""
7171
echo ' end'
7272
echo ' end'
7373
echo
7474
echo ' on_linux do'
7575
echo ' if Hardware::CPU.arm?'
76-
echo " url \"https://github.com/paperfoot/slika/releases/download/v$VER/slika-linux-arm64\""
76+
echo " url \"https://github.com/paperfoot/nanaban-cli/releases/download/v$VER/nanaban-linux-arm64\""
7777
echo " sha256 \"$LINA\""
7878
echo ' else'
79-
echo " url \"https://github.com/paperfoot/slika/releases/download/v$VER/slika-linux-x64\""
79+
echo " url \"https://github.com/paperfoot/nanaban-cli/releases/download/v$VER/nanaban-linux-x64\""
8080
echo " sha256 \"$LINX\""
8181
echo ' end'
8282
echo ' end'
8383
echo
8484
echo ' def install'
85-
echo ' bin_name = OS.mac? ? (Hardware::CPU.arm? ? "slika-darwin-arm64" : "slika-darwin-x64")'
86-
echo ' : (Hardware::CPU.arm? ? "slika-linux-arm64" : "slika-linux-x64")'
87-
echo ' bin.install bin_name => "slika"'
85+
echo ' bin_name = OS.mac? ? (Hardware::CPU.arm? ? "nanaban-darwin-arm64" : "nanaban-darwin-x64")'
86+
echo ' : (Hardware::CPU.arm? ? "nanaban-linux-arm64" : "nanaban-linux-x64")'
87+
echo ' bin.install bin_name => "nanaban"'
8888
echo ' end'
8989
echo
9090
echo ' test do'
91-
echo ' assert_match version.to_s, shell_output("#{bin}/slika --version")'
91+
echo ' assert_match version.to_s, shell_output("#{bin}/nanaban --version")'
9292
echo ' end'
9393
echo 'end'
94-
} > dist/slika.rb
94+
} > dist/nanaban.rb
9595
{
9696
echo '## Homebrew formula for this release'
9797
echo
98-
echo 'Copy `dist/slika.rb` into the `Formula/` directory of `paperfoot/homebrew-tap` and commit.'
98+
echo 'Copy `dist/nanaban.rb` into the `Formula/` directory of `paperfoot/homebrew-tap` and commit.'
9999
echo
100100
echo '```ruby'
101-
cat dist/slika.rb
101+
cat dist/nanaban.rb
102102
echo '```'
103103
} >> "$GITHUB_STEP_SUMMARY"
104104
105105
- name: Publish GitHub Release
106106
uses: softprops/action-gh-release@v2
107107
with:
108108
files: |
109-
dist/slika-darwin-arm64
110-
dist/slika-darwin-x64
111-
dist/slika-linux-x64
112-
dist/slika-linux-arm64
113-
dist/slika-windows-x64.exe
109+
dist/nanaban-darwin-arm64
110+
dist/nanaban-darwin-x64
111+
dist/nanaban-linux-x64
112+
dist/nanaban-linux-arm64
113+
dist/nanaban-windows-x64.exe
114114
dist/SHA256SUMS.txt
115-
dist/slika.rb
115+
dist/nanaban.rb
116116
generate_release_notes: true
117117
fail_on_unmatched_files: true

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ dist/
77
*.jpg
88
*.jpeg
99
*.webp
10-
!slika_logo.png
10+
!nanaban_logo.png
1111
!examples/*.png

Formula/nanaban.rb

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Homebrew formula for nanaban.
2+
#
3+
# This file is the template committed to the main repo. Each release's
4+
# `release.yml` workflow produces a fully-populated `nanaban.rb` (with real
5+
# sha256 sums, wired to that release's binaries) in `dist/` and attaches it to
6+
# the GitHub release. Copy that generated file into your Homebrew tap
7+
# (e.g. paperfoot/homebrew-tap) to publish.
8+
#
9+
# Users install with:
10+
# brew install paperfoot/tap/nanaban
11+
#
12+
# Or, for a one-off install without a tap:
13+
# brew install --cask <url-to-a-generated-nanaban.rb>
14+
#
15+
# The SHA256 placeholders below are intentionally left as-is so a wrong paste
16+
# fails loudly (brew refuses formulae whose sha256 doesn't match).
17+
18+
class Nanaban < Formula
19+
desc "Image generation from the terminal (GPT Image 2, Nano Banana, GPT-5 Image)"
20+
homepage "https://github.com/paperfoot/nanaban-cli"
21+
version "5.0.1"
22+
license "MIT"
23+
24+
on_macos do
25+
if Hardware::CPU.arm?
26+
url "https://github.com/paperfoot/nanaban-cli/releases/download/v5.0.1/nanaban-darwin-arm64"
27+
sha256 "REPLACE_WITH_SHA256_FROM_RELEASE"
28+
else
29+
url "https://github.com/paperfoot/nanaban-cli/releases/download/v5.0.1/nanaban-darwin-x64"
30+
sha256 "REPLACE_WITH_SHA256_FROM_RELEASE"
31+
end
32+
end
33+
34+
on_linux do
35+
if Hardware::CPU.arm?
36+
url "https://github.com/paperfoot/nanaban-cli/releases/download/v5.0.1/nanaban-linux-arm64"
37+
sha256 "REPLACE_WITH_SHA256_FROM_RELEASE"
38+
else
39+
url "https://github.com/paperfoot/nanaban-cli/releases/download/v5.0.1/nanaban-linux-x64"
40+
sha256 "REPLACE_WITH_SHA256_FROM_RELEASE"
41+
end
42+
end
43+
44+
def install
45+
bin_name = OS.mac? ? (Hardware::CPU.arm? ? "nanaban-darwin-arm64" : "nanaban-darwin-x64")
46+
: (Hardware::CPU.arm? ? "nanaban-linux-arm64" : "nanaban-linux-x64")
47+
bin.install bin_name => "nanaban"
48+
end
49+
50+
test do
51+
assert_match version.to_s, shell_output("#{bin}/nanaban --version")
52+
end
53+
end

Formula/slika.rb

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)