@thegpvc/gp-foundry 0.2.11 → 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.
- package/actions/agent-context/README.md +60 -9
- package/actions/agent-context/action.yml +22 -1
- package/actions/agent-context/dist/index.cjs +79 -45
- package/actions/run-agent/README.md +9 -0
- package/actions/run-agent/action.yml +84 -0
- package/actions/sanitize-untrusted-input/README.md +24 -5
- package/actions/sanitize-untrusted-input/dist/index.cjs +30 -28
- package/actions/setup-agent/README.md +1 -0
- package/actions/setup-agent/action.yml +13 -1
- package/dist/cli/index.cjs +124 -122
- package/package.json +1 -1
- package/skill/reference/node-types.md +22 -2
|
@@ -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
|
-
|
|
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
|