@thegpvc/gp-foundry 0.2.10 → 0.2.12

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.
@@ -40,6 +40,7 @@ Minimal usage (Node + Claude Code only):
40
40
  | `setup-commands` | no | `""` | Arbitrary shell run after toolchain setup (e.g. `make tools`, dependency installs). Skipped when empty. |
41
41
  | `git-name` | no | `""` | `git config user.name` value. Configured only when non-empty. |
42
42
  | `git-email` | no | `""` | `git config user.email` value. Configured only when non-empty. |
43
+ | `claude-code-version` | no | `""` | Version (or dist-tag) of `@anthropic-ai/claude-code` to install. Empty installs the latest release; pin it for reproducible agent runs. |
43
44
  | `claude-code-oauth-token` | no | `""` | Claude Code OAuth token. When provided, the action validates that it resolves to a non-empty value and fails fast otherwise. Skipped when empty. |
44
45
 
45
46
  ## Notes
@@ -34,6 +34,14 @@ inputs:
34
34
  description: git user.email to configure. Skipped when empty.
35
35
  required: false
36
36
  default: ""
37
+ claude-code-version:
38
+ description: >-
39
+ Version of @anthropic-ai/claude-code to install (an exact version such as
40
+ "2.1.325", or a dist-tag). Empty installs the latest release — convenient,
41
+ but a new CLI release then changes every lane's behaviour unannounced;
42
+ pin it to make agent runs reproducible.
43
+ required: false
44
+ default: ""
37
45
  claude-code-oauth-token:
38
46
  description: Claude Code OAuth token. Validated (must be non-empty) when provided.
39
47
  required: false
@@ -55,9 +63,13 @@ runs:
55
63
 
56
64
  - name: Install Claude Code
57
65
  shell: bash
66
+ env:
67
+ CLAUDE_CODE_VERSION: ${{ inputs.claude-code-version }}
58
68
  run: |
59
69
  set -euo pipefail
60
- npm install -g @anthropic-ai/claude-code
70
+ # Pinned when asked: an unpinned install picks up every CLI release the
71
+ # moment it ships, on every lane at once.
72
+ npm install -g "@anthropic-ai/claude-code${CLAUDE_CODE_VERSION:+@${CLAUDE_CODE_VERSION}}"
61
73
  # npm can exit 0 having silently dropped the platform-native binary — the
62
74
  # optionalDependencies flake (npm/cli#4828), or a runner with ignore-scripts
63
75
  # set so the postinstall that fetches it never runs. The lane then dies at