From 0d9cc6017b8cf9495fb6d67ba8bc6a4fe98da343 Mon Sep 17 00:00:00 2001 From: Shun Kakinoki Date: Mon, 8 Jun 2026 01:50:12 +0900 Subject: [PATCH] fix(ci): resolve shellcheck/treefmt failures and add stripe/grafana/loki/argo brews - spec: use POSIX [:upper:]/[:lower:] tr classes (SC2018/SC2019) - spec: apply shfmt formatting that nix-format-check requires - homebrew: add stripe-cli, grafana, loki, argo CLIs --- nix-darwin/config/homebrew.nix | 4 ++++ spec/npm_globals_spec.sh | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/nix-darwin/config/homebrew.nix b/nix-darwin/config/homebrew.nix index 39fc86bb3..4ef7e14dd 100644 --- a/nix-darwin/config/homebrew.nix +++ b/nix-darwin/config/homebrew.nix @@ -27,6 +27,7 @@ "steipete/tap" ]; brews = [ + "argo" "bun" "claude-squad" "cliproxyapi" @@ -38,11 +39,13 @@ "gemini-cli" "geth" "gnupg" + "grafana" "graphviz" "helm" "jjui" "kimi-cli" "kurtosis-cli" + "loki" "mactop" "mas" "mlx-lm" @@ -67,6 +70,7 @@ "reth" "sheldon" "sshpass" + "stripe-cli" "temporal" "tmux" "trash" diff --git a/spec/npm_globals_spec.sh b/spec/npm_globals_spec.sh index 67a737d6b..265d0c4fc 100644 --- a/spec/npm_globals_spec.sh +++ b/spec/npm_globals_spec.sh @@ -248,8 +248,10 @@ EOF # Installed at the wanted version, but its platform-native optionalDependency # directory is absent -> must be reinstalled, not skipped. - os_tok=$(uname -s | tr 'A-Z' 'a-z'); [ "$os_tok" = "darwin" ] || os_tok="linux" - cpu_tok=$(uname -m); case "$cpu_tok" in arm64|aarch64) cpu_tok=arm64 ;; *) cpu_tok=x64 ;; esac + os_tok=$(uname -s | tr '[:upper:]' '[:lower:]') + [ "$os_tok" = "darwin" ] || os_tok="linux" + cpu_tok=$(uname -m) + case "$cpu_tok" in arm64 | aarch64) cpu_tok=arm64 ;; *) cpu_tok=x64 ;; esac mkdir -p "$GM/nativecli" cat >"$GM/nativecli/package.json" <