@thegpvc/gp-foundry 0.2.4 → 0.2.5

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.
@@ -55,7 +55,20 @@ runs:
55
55
 
56
56
  - name: Install Claude Code
57
57
  shell: bash
58
- run: npm install -g @anthropic-ai/claude-code
58
+ run: |
59
+ set -euo pipefail
60
+ npm install -g @anthropic-ai/claude-code
61
+ # npm can exit 0 having silently dropped the platform-native binary — the
62
+ # optionalDependencies flake (npm/cli#4828), or a runner with ignore-scripts
63
+ # set so the postinstall that fetches it never runs. The lane then dies at
64
+ # "Run agent" with no comment (#12567). Verify, and on failure reinstall
65
+ # with lifecycle scripts forced before failing the job loudly rather than
66
+ # stranding the trigger.
67
+ if ! claude --version >/dev/null 2>&1; then
68
+ echo "::warning::claude binary missing after install — reinstalling with scripts forced (#12567)"
69
+ npm install -g @anthropic-ai/claude-code --ignore-scripts=false --foreground-scripts
70
+ claude --version
71
+ fi
59
72
 
60
73
  - name: Install protoc
61
74
  if: inputs.install-protoc == 'true'