mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-12-06 03:41:38 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55f40d5a5f | ||
|
|
8691f69327 | ||
|
|
79726e053e |
@@ -147,7 +147,7 @@ runs:
|
||||
PATH_TO_CLAUDE_CODE_EXECUTABLE: ${{ inputs.path_to_claude_code_executable }}
|
||||
run: |
|
||||
if [ -z "$PATH_TO_CLAUDE_CODE_EXECUTABLE" ]; then
|
||||
CLAUDE_CODE_VERSION="2.1.334"
|
||||
CLAUDE_CODE_VERSION="2.1.337"
|
||||
echo "Installing Claude Code v${CLAUDE_CODE_VERSION}..."
|
||||
for attempt in 1 2 3; do
|
||||
echo "Installation attempt $attempt..."
|
||||
|
||||
+10
-10
@@ -6,7 +6,7 @@
|
||||
"name": "@anthropic-ai/claude-code-base-action",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.1",
|
||||
"@anthropic-ai/claude-agent-sdk": "^0.3.334",
|
||||
"@anthropic-ai/claude-agent-sdk": "^0.3.337",
|
||||
"shell-quote": "^1.8.4",
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -27,23 +27,23 @@
|
||||
|
||||
"@actions/io": ["@actions/[email protected]", "", {}, "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk": ["@anthropic-ai/[email protected]4", "", { "optionalDependencies": { "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.334", "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.334", "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.334", "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.334", "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.334", "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.334", "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.334", "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.334" }, "peerDependencies": { "@anthropic-ai/sdk": ">=0.93.0", "@modelcontextprotocol/sdk": "^1.29.0", "zod": "^4.0.0" } }, "sha512-UfSIpsNBCW4f0/Fs4ibHrPGXEtV3IBjBlovWixYglr2I6l6VT3dl/5Dhz4Kb2xcslLTuSfgmoZf8tkV3UzC34Q=="],
|
||||
"@anthropic-ai/claude-agent-sdk": ["@anthropic-ai/[email protected]7", "", { "optionalDependencies": { "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.337", "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.337", "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.337", "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.337", "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.337", "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.337", "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.337", "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.337" }, "peerDependencies": { "@anthropic-ai/sdk": ">=0.93.0", "@modelcontextprotocol/sdk": "^1.29.0", "zod": "^4.0.0" } }, "sha512-hYyN5haRBmiYwIoGeOfpZ7NiboSXBk7rK1rUwzIMagiLXqJEiCjIw5ifZzg1OwhFwdSEcPnDJbX5vTuUq7QIyQ=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk-darwin-arm64": ["@anthropic-ai/[email protected]4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-ElK/2wJj5ZjdzxR4k441lbv54V1lbryJIYwPlo9iBocqRwMbMeG8QWtqSm6E7drN/KuB2dL6aVICQEg+atgawQ=="],
|
||||
"@anthropic-ai/claude-agent-sdk-darwin-arm64": ["@anthropic-ai/[email protected]7", "", { "os": "darwin", "cpu": "arm64" }, "sha512-elshmmBZ3tSdCzxf44MX9erd3Xb52+ciPdv0YaxHXzOZjKocsvJNOoVn40DVqpI5D2HYmkqtEGmiYiBUg1EBdg=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk-darwin-x64": ["@anthropic-ai/[email protected]4", "", { "os": "darwin", "cpu": "x64" }, "sha512-QaDqz7OS1OhErCSDL+SRFICy9sEBynuA8+ydLG9Xvt+NdcjevmaK7S1DdA5gHViCR4vddkEcg+0+rZqXBU8JUg=="],
|
||||
"@anthropic-ai/claude-agent-sdk-darwin-x64": ["@anthropic-ai/[email protected]7", "", { "os": "darwin", "cpu": "x64" }, "sha512-/7G3trnNXxtNzo32FF4XwYPhonvjf2OZmXj6eCoxT72frsOEYXgYBK6dimH3xVfv4gc2ud+ai/SIqYRmiFJzbg=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk-linux-arm64": ["@anthropic-ai/[email protected]4", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-kbf/VPzX8VZBpolbOMAYGXd4KfVo1WaNQVl8HkaNRM1KDHKKrIF5H3ABlyjw6PCux+eYtfF0Qe8xMc/ze8Vn8Q=="],
|
||||
"@anthropic-ai/claude-agent-sdk-linux-arm64": ["@anthropic-ai/[email protected]7", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-BV8IEFrtRf4IfE3iTonXOcSGGb7ofZqDKzXIMFBU+gzfygTTk5lk8nGG00/o2iPoTp/fvjdapfEv9/cF+/ickQ=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": ["@anthropic-ai/[email protected]4", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-vcAFgvWQsfTRtWCptgo6gMNW5YqM50+Am/aWT4rnJeiDWJbUEJhvtdl7Sit4nU8sEE4xBNOqP2n2f96wummg2w=="],
|
||||
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": ["@anthropic-ai/[email protected]7", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-vSseFHOCbto6sk7cnnwMMcfo6ksrVmcdxXbZ+busqNBPSIC3eSdN674jpyoDjXhxBJIE0iyN3JMvoNyBhD8TCQ=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk-linux-x64": ["@anthropic-ai/[email protected]4", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-aXwrBoh7jWObGBsE/raT2y5bB7/uieQKsM/RQfu77UiSAJCZf1PXq8EBoONL0mmB+3B6b89TVT1jlNbRXBv63A=="],
|
||||
"@anthropic-ai/claude-agent-sdk-linux-x64": ["@anthropic-ai/[email protected]7", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-4O0BKnqie2cr4Ey2KT3s5jwt7xHVz+qTWcqSJ8tNyiSr2p0DJbxcoHwT8neP+5+KV75kjN+UixBCpXPdcWe/4w=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": ["@anthropic-ai/[email protected]4", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-m677WWU6UxADKG7jpjpfeH67VQYhyFzUDhOPCWVvXXtQMNNtPipKLAIoKEPR4XDUcgtuqUM5POlb5wLU+z6FLA=="],
|
||||
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": ["@anthropic-ai/[email protected]7", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-m2VolTUf6/jwGMwHqzmcaiorfnaNh4c9ju+rLMp5x5BtOL/hjznRSFuI030XBh1/MFCXIwR3vDOq5d0iK00N2g=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk-win32-arm64": ["@anthropic-ai/[email protected]4", "", { "os": "win32", "cpu": "arm64" }, "sha512-A/uKlkv3aRAOsbnOKj9pfJrmiTae4uJT18ZKW7PFFuqHSgGqSNTZUTNtrtMM5bPnOcG85TRWmqicJTdUBWpQ1A=="],
|
||||
"@anthropic-ai/claude-agent-sdk-win32-arm64": ["@anthropic-ai/[email protected]7", "", { "os": "win32", "cpu": "arm64" }, "sha512-HXPfXw7SbkkXIKk7DwCKkay5CWAr0Nv+MAgylfFnti86plsWMl6wn4NLw/k2fcnRO7kp4XjLXBF3I8vT8R372Q=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk-win32-x64": ["@anthropic-ai/[email protected]4", "", { "os": "win32", "cpu": "x64" }, "sha512-kRFnHEQouilRTjtzPP81YYdbsCGTZt1kWjVqnAKnVtPEc3Ma/ilSaKU86EaRpb0234xmpXf4EOUHgCoIHpwSUQ=="],
|
||||
"@anthropic-ai/claude-agent-sdk-win32-x64": ["@anthropic-ai/[email protected]7", "", { "os": "win32", "cpu": "x64" }, "sha512-QLeMa2J8jke/8XHxwlmW1GSu9c2IAIqb3ToWhKeV809AyFLhyr2ilFrO6uwbj8E5N1PX9VhFHJYnLAixC9Xnwg=="],
|
||||
|
||||
"@anthropic-ai/sdk": ["@anthropic-ai/[email protected]", "", { "dependencies": { "json-schema-to-ts": "^3.1.1" }, "peerDependencies": { "zod": "^3.25.0 || ^4.0.0" }, "optionalPeers": ["zod"], "bin": { "anthropic-ai-sdk": "bin/cli" } }, "sha512-q9vaSZQVFx6B/gPxetGYfLXSJD5v0sOmh0OpZDq7yCrTSA+Rscvrtyol7JJTW40wEpQB4U1B4JXzxQitbQ3CAA=="],
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.1",
|
||||
"@anthropic-ai/claude-agent-sdk": "^0.3.334",
|
||||
"@anthropic-ai/claude-agent-sdk": "^0.3.337",
|
||||
"shell-quote": "^1.8.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.1",
|
||||
"@actions/github": "^6.0.1",
|
||||
"@anthropic-ai/claude-agent-sdk": "^0.3.334",
|
||||
"@anthropic-ai/claude-agent-sdk": "^0.3.337",
|
||||
"@modelcontextprotocol/sdk": "^1.11.0",
|
||||
"@octokit/graphql": "^8.2.2",
|
||||
"@octokit/rest": "^21.1.1",
|
||||
@@ -37,23 +37,23 @@
|
||||
|
||||
"@actions/io": ["@actions/[email protected]", "", {}, "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk": ["@anthropic-ai/[email protected]4", "", { "optionalDependencies": { "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.334", "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.334", "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.334", "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.334", "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.334", "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.334", "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.334", "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.334" }, "peerDependencies": { "@anthropic-ai/sdk": ">=0.93.0", "@modelcontextprotocol/sdk": "^1.29.0", "zod": "^4.0.0" } }, "sha512-UfSIpsNBCW4f0/Fs4ibHrPGXEtV3IBjBlovWixYglr2I6l6VT3dl/5Dhz4Kb2xcslLTuSfgmoZf8tkV3UzC34Q=="],
|
||||
"@anthropic-ai/claude-agent-sdk": ["@anthropic-ai/[email protected]7", "", { "optionalDependencies": { "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.337", "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.337", "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.337", "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.337", "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.337", "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.337", "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.337", "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.337" }, "peerDependencies": { "@anthropic-ai/sdk": ">=0.93.0", "@modelcontextprotocol/sdk": "^1.29.0", "zod": "^4.0.0" } }, "sha512-hYyN5haRBmiYwIoGeOfpZ7NiboSXBk7rK1rUwzIMagiLXqJEiCjIw5ifZzg1OwhFwdSEcPnDJbX5vTuUq7QIyQ=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk-darwin-arm64": ["@anthropic-ai/[email protected]4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-ElK/2wJj5ZjdzxR4k441lbv54V1lbryJIYwPlo9iBocqRwMbMeG8QWtqSm6E7drN/KuB2dL6aVICQEg+atgawQ=="],
|
||||
"@anthropic-ai/claude-agent-sdk-darwin-arm64": ["@anthropic-ai/[email protected]7", "", { "os": "darwin", "cpu": "arm64" }, "sha512-elshmmBZ3tSdCzxf44MX9erd3Xb52+ciPdv0YaxHXzOZjKocsvJNOoVn40DVqpI5D2HYmkqtEGmiYiBUg1EBdg=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk-darwin-x64": ["@anthropic-ai/[email protected]4", "", { "os": "darwin", "cpu": "x64" }, "sha512-QaDqz7OS1OhErCSDL+SRFICy9sEBynuA8+ydLG9Xvt+NdcjevmaK7S1DdA5gHViCR4vddkEcg+0+rZqXBU8JUg=="],
|
||||
"@anthropic-ai/claude-agent-sdk-darwin-x64": ["@anthropic-ai/[email protected]7", "", { "os": "darwin", "cpu": "x64" }, "sha512-/7G3trnNXxtNzo32FF4XwYPhonvjf2OZmXj6eCoxT72frsOEYXgYBK6dimH3xVfv4gc2ud+ai/SIqYRmiFJzbg=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk-linux-arm64": ["@anthropic-ai/[email protected]4", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-kbf/VPzX8VZBpolbOMAYGXd4KfVo1WaNQVl8HkaNRM1KDHKKrIF5H3ABlyjw6PCux+eYtfF0Qe8xMc/ze8Vn8Q=="],
|
||||
"@anthropic-ai/claude-agent-sdk-linux-arm64": ["@anthropic-ai/[email protected]7", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-BV8IEFrtRf4IfE3iTonXOcSGGb7ofZqDKzXIMFBU+gzfygTTk5lk8nGG00/o2iPoTp/fvjdapfEv9/cF+/ickQ=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": ["@anthropic-ai/[email protected]4", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-vcAFgvWQsfTRtWCptgo6gMNW5YqM50+Am/aWT4rnJeiDWJbUEJhvtdl7Sit4nU8sEE4xBNOqP2n2f96wummg2w=="],
|
||||
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": ["@anthropic-ai/[email protected]7", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-vSseFHOCbto6sk7cnnwMMcfo6ksrVmcdxXbZ+busqNBPSIC3eSdN674jpyoDjXhxBJIE0iyN3JMvoNyBhD8TCQ=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk-linux-x64": ["@anthropic-ai/[email protected]4", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-aXwrBoh7jWObGBsE/raT2y5bB7/uieQKsM/RQfu77UiSAJCZf1PXq8EBoONL0mmB+3B6b89TVT1jlNbRXBv63A=="],
|
||||
"@anthropic-ai/claude-agent-sdk-linux-x64": ["@anthropic-ai/[email protected]7", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-4O0BKnqie2cr4Ey2KT3s5jwt7xHVz+qTWcqSJ8tNyiSr2p0DJbxcoHwT8neP+5+KV75kjN+UixBCpXPdcWe/4w=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": ["@anthropic-ai/[email protected]4", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-m677WWU6UxADKG7jpjpfeH67VQYhyFzUDhOPCWVvXXtQMNNtPipKLAIoKEPR4XDUcgtuqUM5POlb5wLU+z6FLA=="],
|
||||
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": ["@anthropic-ai/[email protected]7", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-m2VolTUf6/jwGMwHqzmcaiorfnaNh4c9ju+rLMp5x5BtOL/hjznRSFuI030XBh1/MFCXIwR3vDOq5d0iK00N2g=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk-win32-arm64": ["@anthropic-ai/[email protected]4", "", { "os": "win32", "cpu": "arm64" }, "sha512-A/uKlkv3aRAOsbnOKj9pfJrmiTae4uJT18ZKW7PFFuqHSgGqSNTZUTNtrtMM5bPnOcG85TRWmqicJTdUBWpQ1A=="],
|
||||
"@anthropic-ai/claude-agent-sdk-win32-arm64": ["@anthropic-ai/[email protected]7", "", { "os": "win32", "cpu": "arm64" }, "sha512-HXPfXw7SbkkXIKk7DwCKkay5CWAr0Nv+MAgylfFnti86plsWMl6wn4NLw/k2fcnRO7kp4XjLXBF3I8vT8R372Q=="],
|
||||
|
||||
"@anthropic-ai/claude-agent-sdk-win32-x64": ["@anthropic-ai/[email protected]4", "", { "os": "win32", "cpu": "x64" }, "sha512-kRFnHEQouilRTjtzPP81YYdbsCGTZt1kWjVqnAKnVtPEc3Ma/ilSaKU86EaRpb0234xmpXf4EOUHgCoIHpwSUQ=="],
|
||||
"@anthropic-ai/claude-agent-sdk-win32-x64": ["@anthropic-ai/[email protected]7", "", { "os": "win32", "cpu": "x64" }, "sha512-QLeMa2J8jke/8XHxwlmW1GSu9c2IAIqb3ToWhKeV809AyFLhyr2ilFrO6uwbj8E5N1PX9VhFHJYnLAixC9Xnwg=="],
|
||||
|
||||
"@anthropic-ai/sdk": ["@anthropic-ai/[email protected]", "", { "dependencies": { "json-schema-to-ts": "^3.1.1" }, "peerDependencies": { "zod": "^3.25.0 || ^4.0.0" }, "optionalPeers": ["zod"], "bin": { "anthropic-ai-sdk": "bin/cli" } }, "sha512-q9vaSZQVFx6B/gPxetGYfLXSJD5v0sOmh0OpZDq7yCrTSA+Rscvrtyol7JJTW40wEpQB4U1B4JXzxQitbQ3CAA=="],
|
||||
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.1",
|
||||
"@actions/github": "^6.0.1",
|
||||
"@anthropic-ai/claude-agent-sdk": "^0.3.334",
|
||||
"@anthropic-ai/claude-agent-sdk": "^0.3.337",
|
||||
"@modelcontextprotocol/sdk": "^1.11.0",
|
||||
"@octokit/graphql": "^8.2.2",
|
||||
"@octokit/rest": "^21.1.1",
|
||||
|
||||
@@ -113,7 +113,7 @@ async function installClaudeCode(): Promise<string> {
|
||||
return customExecutable;
|
||||
}
|
||||
|
||||
const claudeCodeVersion = "2.1.334";
|
||||
const claudeCodeVersion = "2.1.337";
|
||||
console.log(`Installing Claude Code v${claudeCodeVersion}...`);
|
||||
|
||||
for (let attempt = 1; attempt <= 3; attempt++) {
|
||||
|
||||
Reference in New Issue
Block a user