class Voy < Formula
desc "Yazi-style three-pane TUI file manager"
homepage "https://github.com/atsumo/voy"
version "VERSION"
license "MIT"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/atsumo/voy/releases/download/vVERSION/voy-darwin-arm64.tar.gz"
sha256 "SHA256_DARWIN_ARM64"
else
url "https://github.REDACTED.tar.gz"
sha256 "SHA256_DARWIN_X64"
end
end
on_linux do
if Hardware::CPU.arm?
url "https://github.REDACTED.tar.gz"
sha256 "SHA256_LINUX_ARM64"
else
url "https://github.REDACTED.tar.gz"
sha256 "SHA256_LINUX_X64"
end
end
def install
bin.install "voy"
end
end
brew tap atsumo/tap && brew install voy で実際にインストール確認
If you need specific details from before exiting plan mode (like exact code snippets, error messages, or content you generated), read the full transcript at: /Users/atsumo/.REDACTED.jsonl
If this plan can be broken down into multiple independent tasks, consider using the TeamCreate tool to create a team and parallelize the work.
Assistant
Let me start by reading the current state of the project.
Research agent finished. One interesting finding: Bun supports cross-compilation via --target flag (e.g., bun build --compile --target=bun-darwin-arm64), meaning all 4 binaries could be built from a single ubuntu-latest runner instead of using 4 separate runners. This would be faster and cheaper (macOS runners are slower to provision).
Would you like me to update the workflow to use cross-compilation from a single runner, or keep the current approach with native runners per platform?
All 4 files are already created and ready as-is:
package.json - version 0.1.0 added
.github/workflows/release.yml - 4-platform matrix build + release + formula update
.gitignore に dist が既にある。shebang #!/usr/bin/env bun も index.tsx にあるので、バンドル後もそのまま残ります。package.json を更新します。
Assistant
ビルドが通るか確認します。
Assistant
ターゲット指定が必要ですね。
Assistant
ビルド成功。動作確認します。
Assistant
バンドルされた JS は正常に動いています(Raw mode エラーは TUI アプリを非インタラクティブ環境で実行したため。bun run start でも同じエラーが出る正常な挙動です)。
完了です。変更内容:
bin: src/index.tsx → dist/voy.js
files: ["src"] → ["dist"]
build: bun build src/index.tsx --target bun --outfile dist/voy.js
build:compile: 従来のスタンドアロンバイナリビルドも残した
prepublishOnly: npm publish 時に自動でビルドが走る
公開手順
bash
npm login
npm publish
ユーザーのインストール:
bash
bunx voy
bun install -g voy
User
npm error code E403
npm error 403 403 Forbidden - PUT https://registry.npmjs.org/voy - Two-factor authentication or granular access token with bypass 2fa enabled is required to publish packages.
npm error 403 In most cases, you or one of your dependencies are requesting
npm error 403 a package version that is forbidden by your security policy, or
npm error 403 on a server you do not have access to.
npm error A complete log of this run can be found in: /Users/atsumo/.npm/_logs/2026-02-19T15_42_23_917Z-debug-0.log
npm notice
npm notice 📦 @atsumo/voy@0.1.0
npm notice Tarball Contents
npm notice 2.1kB README.md
npm notice 1.9MB dist/voy.js
npm notice 786B package.json
npm notice Tarball Details
npm notice name: @atsumo/voy
npm notice version: 0.1.0
npm notice filename: atsumo-voy-0.1.0.tgz
npm notice package size: 355.9 kB
npm notice unpacked size: 1.9 MB
npm notice shasum: 9df64189658c797273fbbd67eba9e8ce27a4c167
npm notice integrity: sha512-uH7CgG7ryuD99[...]jRJBn+QYMx8Eg==
npm notice total files: 3
npm notice
npm notice Access token expired or revoked. Please try logging in again.
npm notice Access token expired or revoked. Please try logging in again.
npm notice Publishing to https://registry.npmjs.org/ with tag latest and public access
npm error code E403
npm error 403 403 Forbidden - PUT https://registry.npmjs.org/@atsumo%2fvoy - Two-factor authentication or granular access token with bypass 2fa enabled is required to publish packages.
npm error 403 In most cases, you or one of your dependencies are requesting
npm error 403 a package version that is forbidden by your security policy, or
npm error 403 on a server you do not have access to.
npm error A complete log of this run can be found in: /Users/atsumo/.npm/_logs/2026-02-19T15_45_01_664Z-debug-0.log
Assistant
トークンが期限切れと出ています。再ログインしてから OTP 付きで publish してください:
bash
npm login
npm publish --access public --otp=<認証アプリのコード>
User
npm notice
npm notice 📦 @atsumo/voy@0.1.0
npm notice Tarball Contents
npm notice 2.1kB README.md
npm notice 1.9MB dist/voy.js
npm notice 786B package.json
npm notice Tarball Details
npm notice name: @atsumo/voy
npm notice version: 0.1.0
npm notice filename: atsumo-voy-0.1.0.tgz
npm notice package size: 355.9 kB
npm notice unpacked size: 1.9 MB
npm notice shasum: 9df64189658c797273fbbd67eba9e8ce27a4c167
npm notice integrity: sha512-uH7CgG7ryuD99[...]jRJBn+QYMx8Eg==
npm notice total files: 3
npm notice
npm notice Access token expired or revoked. Please try logging in again.
npm notice Access token expired or revoked. Please try logging in again.
npm notice Publishing to https://registry.npmjs.org/ with tag latest and public access
npm error code E403
npm error 403 403 Forbidden - PUT https://registry.npmjs.org/@atsumo%2fvoy - Two-factor authentication or granular access token with bypass 2fa enabled is required to publish packages.
npm error 403 In most cases, you or one of your dependencies are requesting
npm error 403 a package version that is forbidden by your security policy, or
npm error 403 on a server you do not have access to.
npm error A complete log of this run can be found in: /Users/atsumo/.npm/_logs/2026-02-19T15_46_09_651Z-debug-0.log
Assistant
まだ「Access token expired or revoked」が出ているので、ログインが反映されていないようです。