@cocorograph/hub-agent 0.6.73 → 0.6.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocorograph/hub-agent",
3
- "version": "0.6.73",
3
+ "version": "0.6.74",
4
4
  "description": "Hub Hosted Cockpit のローカル常駐 agent。Hub と outbound WSS で接続し、ローカルの tmux/pty を中継する。",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -483,7 +483,10 @@ _install_node_lts_brew() {
483
483
  # - 範囲超過(current 系等) → LTS にダウングレード
484
484
  ensure_node_version() {
485
485
  local v
486
- v=$(node --version 2>/dev/null | sed 's/^v//' | cut -d. -f1)
486
+ # node 皆無のクリーン環境では `node --version` exit 127。set -euo pipefail
487
+ # では pipefail がこれを拾ってスクリプトごと死ぬため、`|| v=""` で必ず吸収する
488
+ # (macOS テスト機には既に node があり露見しなかった潜在バグ。WSL クリーン Ubuntu で発覚)。
489
+ v=$(node --version 2>/dev/null | sed 's/^v//' | cut -d. -f1) || v=""
487
490
  if [[ -z "$v" ]]; then
488
491
  color_step "node が未インストール → $NODE_DEFAULT_BREW_FORMULA (Active LTS) を install"
489
492
  if [[ "$(uname)" == "Darwin" ]]; then