mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-22 14:24:13 +08:00
* feat: integrate Claude Code SDK to replace process spawning - Add @anthropic-ai/claude-code dependency to base-action - Replace mkfifo/cat process spawning with direct SDK usage - Remove global Claude Code installation from action.yml files - Maintain full compatibility with existing options - Add comprehensive tests for SDK integration This change makes the implementation cleaner and more reliable by eliminating the complexity of managing child processes and named pipes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: add debugging and bun executable for Claude Code SDK - Add stderr handler to capture CLI errors - Explicitly set bun as the executable for the SDK - This should help diagnose why the CLI is exiting with code 1 * fix: extract mcpServers from parsed MCP config The SDK expects just the servers object, not the wrapper object with mcpServers property. * tsc --------- Co-authored-by: Claude <noreply@anthropic.com>
31 lines
808 B
JSON
31 lines
808 B
JSON
{
|
|
"name": "@anthropic-ai/claude-code-action",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"install-hooks": "bun run scripts/install-hooks.sh",
|
|
"test": "bun test",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@actions/core": "^1.10.1",
|
|
"@actions/github": "^6.0.1",
|
|
"@anthropic-ai/claude-code": "1.0.57",
|
|
"@modelcontextprotocol/sdk": "^1.11.0",
|
|
"@octokit/graphql": "^8.2.2",
|
|
"@octokit/rest": "^21.1.1",
|
|
"@octokit/webhooks-types": "^7.6.1",
|
|
"node-fetch": "^3.3.2",
|
|
"zod": "^3.24.4"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "1.2.11",
|
|
"@types/node": "^20.0.0",
|
|
"@types/node-fetch": "^2.6.12",
|
|
"prettier": "3.5.3",
|
|
"typescript": "^5.8.3"
|
|
}
|
|
}
|