mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-12-03 18:49:59 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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.335"
|
||||
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.335",
|
||||
"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]5", "", { "optionalDependencies": { "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.335", "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.335", "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.335", "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.335", "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.335", "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.335", "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.335", "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.335" }, "peerDependencies": { "@anthropic-ai/sdk": ">=0.93.0", "@modelcontextprotocol/sdk": "^1.29.0", "zod": "^4.0.0" } }, "sha512-cYuKRcy5nBSUQiMrEj8RT49jF32Fzya2iZgZXOA0/DGJlizp8ydfz1ACS9ro/wDrHmZIBUko94BmKKVBFJYJVw=="],
|
||||
|
||||
"@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]5", "", { "os": "darwin", "cpu": "arm64" }, "sha512-pQZfxJhTjCH9u/pF4nAM2uxFUA2rmcUnZUR0hw3OlAg0EKxowRV4/RnnF4DnK9Ogw5DdAtPlcbQcpC43pDv/aQ=="],
|
||||
|
||||
"@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]5", "", { "os": "darwin", "cpu": "x64" }, "sha512-hT9iL4rbdmd0hMYCHWrnxQazjiutNOaaQKDx7OYw9gCKjStrCQj9Zz3WYxjO8KD0FzR86eZpRxzDYYMiJDp9zA=="],
|
||||
|
||||
"@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]5", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-NZIHodBGqr/JqcoQq9T8EzzpMWaLKwUn9nFKaXUfSnxdioxcqYXLP+UBcoRinDSdG/HmpUCJc47GsTpucv935g=="],
|
||||
|
||||
"@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]5", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-cmikVQYUIZA0Ex+GNoKYf68dytEuIdU+coHbqGowB/20hZyGy3Cnj6RHzyXbuElLNo/Zqq538ZOZHv1eKSxFEQ=="],
|
||||
|
||||
"@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]5", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-6Jn+B03PPhIuPeA9W3grBF2YUdPxtcYhvpQZaULRIVQEir8Oc5sh0cd6khAkj5Err5HkvDyuujubuJwSDnoozA=="],
|
||||
|
||||
"@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]5", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-+GoIzJxi/IG11l9KlvnhvWkcilScS10WK1vl5nfOxLcfnBtVHPCrk9fVVFF4Zwf0kGOoP8EIPHstnP+5/Qi/kw=="],
|
||||
|
||||
"@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]5", "", { "os": "win32", "cpu": "arm64" }, "sha512-DLaJ0l6CEg5qeAV4Sxer/wa14UytHjyDYCC5EilyrzRHACcYM6v8gD7KSrh+Y40Jorno4MhCflPHCjBpNRULRA=="],
|
||||
|
||||
"@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]5", "", { "os": "win32", "cpu": "x64" }, "sha512-au7xiR6h1qK3Bo5SkQYcGoZ5snzhzLS+KUIBmxyk7nxwwfYRymD5AhTdOfsYXb31lOqXHSV9tYOZoFL2oD/9hg=="],
|
||||
|
||||
"@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.335",
|
||||
"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.335",
|
||||
"@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]5", "", { "optionalDependencies": { "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.335", "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.335", "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.335", "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.335", "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.335", "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.335", "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.335", "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.335" }, "peerDependencies": { "@anthropic-ai/sdk": ">=0.93.0", "@modelcontextprotocol/sdk": "^1.29.0", "zod": "^4.0.0" } }, "sha512-cYuKRcy5nBSUQiMrEj8RT49jF32Fzya2iZgZXOA0/DGJlizp8ydfz1ACS9ro/wDrHmZIBUko94BmKKVBFJYJVw=="],
|
||||
|
||||
"@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]5", "", { "os": "darwin", "cpu": "arm64" }, "sha512-pQZfxJhTjCH9u/pF4nAM2uxFUA2rmcUnZUR0hw3OlAg0EKxowRV4/RnnF4DnK9Ogw5DdAtPlcbQcpC43pDv/aQ=="],
|
||||
|
||||
"@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]5", "", { "os": "darwin", "cpu": "x64" }, "sha512-hT9iL4rbdmd0hMYCHWrnxQazjiutNOaaQKDx7OYw9gCKjStrCQj9Zz3WYxjO8KD0FzR86eZpRxzDYYMiJDp9zA=="],
|
||||
|
||||
"@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]5", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-NZIHodBGqr/JqcoQq9T8EzzpMWaLKwUn9nFKaXUfSnxdioxcqYXLP+UBcoRinDSdG/HmpUCJc47GsTpucv935g=="],
|
||||
|
||||
"@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]5", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-cmikVQYUIZA0Ex+GNoKYf68dytEuIdU+coHbqGowB/20hZyGy3Cnj6RHzyXbuElLNo/Zqq538ZOZHv1eKSxFEQ=="],
|
||||
|
||||
"@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]5", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-6Jn+B03PPhIuPeA9W3grBF2YUdPxtcYhvpQZaULRIVQEir8Oc5sh0cd6khAkj5Err5HkvDyuujubuJwSDnoozA=="],
|
||||
|
||||
"@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]5", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-+GoIzJxi/IG11l9KlvnhvWkcilScS10WK1vl5nfOxLcfnBtVHPCrk9fVVFF4Zwf0kGOoP8EIPHstnP+5/Qi/kw=="],
|
||||
|
||||
"@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]5", "", { "os": "win32", "cpu": "arm64" }, "sha512-DLaJ0l6CEg5qeAV4Sxer/wa14UytHjyDYCC5EilyrzRHACcYM6v8gD7KSrh+Y40Jorno4MhCflPHCjBpNRULRA=="],
|
||||
|
||||
"@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]5", "", { "os": "win32", "cpu": "x64" }, "sha512-au7xiR6h1qK3Bo5SkQYcGoZ5snzhzLS+KUIBmxyk7nxwwfYRymD5AhTdOfsYXb31lOqXHSV9tYOZoFL2oD/9hg=="],
|
||||
|
||||
"@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.335",
|
||||
"@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.335";
|
||||
console.log(`Installing Claude Code v${claudeCodeVersion}...`);
|
||||
|
||||
for (let attempt = 1; attempt <= 3; attempt++) {
|
||||
|
||||
Reference in New Issue
Block a user