{"_id":"@diekotto/ai-pull-review-cli","_rev":"6-5ceaa3bf5c55c4ffa15ec63d6610a78a","name":"@diekotto/ai-pull-review-cli","dist-tags":{"latest":"2.3.0"},"versions":{"1.0.1":{"name":"@diekotto/ai-pull-review-cli","version":"1.0.1","keywords":["AI","PR","GHA","cli","code-review","github-action"],"author":{"name":"Diego Maroto"},"license":"MIT","_id":"@diekotto/ai-pull-review-cli@1.0.1","maintainers":[{"name":"diekotto","email":"diego.diemg@gmail.com"}],"homepage":"https://github.com/diekotto/ai-pull-review#readme","bugs":{"url":"https://github.com/diekotto/ai-pull-review/issues"},"bin":{"ai-pull-review":"bin/cli.js"},"dist":{"shasum":"2e3ddff8f66fdd1be6501d051a8fbcd6a07c0fa7","tarball":"https://registry.npmjs.org/@diekotto/ai-pull-review-cli/-/ai-pull-review-cli-1.0.1.tgz","fileCount":7,"integrity":"sha512-evOBlUyVzNN3Vk2N+d8dIx8RnjlboounEaWyoZybrO7h2Gg1HgBXO8O9EPtORnTdKN/7tIV7esot1moZhydYHQ==","signatures":[{"sig":"MEUCIAGqHOrvV9dDhnIYfQq1BXJ6OBI0/sIAJp3e+Pe8GcB3AiEA58TvtnvBDJx2WzaAXv0KkQGJI7XWbTOyW5e8GPYcEVM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3659224},"main":"src/cli.js","gitHead":"47253bba4847a552ad9256e7d0b1f23a20a42d2f","scripts":{"cli":"esbuild src/cli.js --bundle --platform=node --legal-comments=none --outfile=bin/cli.js","gha":"esbuild src/gha.js --bundle --platform=node --legal-comments=none --outfile=dist/gha.js","test":"jest","start":"node src/cli.js","pretty":"prettier --write .","prepare":"husky"},"_npmUser":{"name":"diekotto","email":"diego.diemg@gmail.com"},"repository":{"url":"git+https://github.com/diekotto/ai-pull-review.git","type":"git"},"_npmVersion":"10.8.2","description":"A GitHub Action that leverages Anthropic's Claude AI to provide intelligent analysis and review of pull requests.","directories":{},"lint-staged":{"**/*":"prettier --write --ignore-unknown"},"_nodeVersion":"20.18.1","dependencies":{"uuid":"^11.0.3","dotenv":"^16.4.7","commander":"^13.0.0","minimatch":"^10.0.1","@actions/core":"^1.11.1","@actions/github":"^6.0.0","@anthropic-ai/sdk":"^0.33.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.1.7","esbuild":"^0.24.2","prettier":"3.4.2","lint-staged":"^15.3.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-pull-review-cli_1.0.1_1736092232569_0.9728466706051575","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@diekotto/ai-pull-review-cli","version":"1.0.2","keywords":["AI","PR","GHA","cli","code-review","github-action"],"author":{"name":"Diego Maroto"},"license":"MIT","_id":"@diekotto/ai-pull-review-cli@1.0.2","maintainers":[{"name":"diekotto","email":"diego.diemg@gmail.com"}],"homepage":"https://github.com/diekotto/ai-pull-review#readme","bugs":{"url":"https://github.com/diekotto/ai-pull-review/issues"},"bin":{"ai-pull-review-cli":"bin/cli.js"},"dist":{"shasum":"5f78b38809adfec19f030d2338b9e78cad8c504c","tarball":"https://registry.npmjs.org/@diekotto/ai-pull-review-cli/-/ai-pull-review-cli-1.0.2.tgz","fileCount":7,"integrity":"sha512-tWWvQvu+Tz4AQw5oE65+1BfV35dZQ/TX6SBEpEoFZM3eH+/0FwQGxSPdvq6+JjsMioWbUiVhw4S+qZNlWMX3/Q==","signatures":[{"sig":"MEUCIAbjE1UGmVxW4qIbzdTNDxjCOCrczVSJRUqnWxrpjhn8AiEA5UuJrO4p2oX7bcYvGLq8Wf9++wVQ/YuMp/TgJMU+dcA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3660898},"main":"src/cli.js","gitHead":"c350da364c37bb7cc0e8ec61f9089ce46bebf460","scripts":{"cli":"esbuild src/cli.js --bundle --platform=node --legal-comments=none --outfile=bin/cli.js","gha":"esbuild src/gha.js --bundle --platform=node --legal-comments=none --outfile=dist/gha.js","test":"jest","start":"node src/cli.js","pretty":"prettier --write .","prepare":"husky"},"_npmUser":{"name":"diekotto","email":"diego.diemg@gmail.com"},"repository":{"url":"git+https://github.com/diekotto/ai-pull-review.git","type":"git"},"_npmVersion":"10.8.2","description":"A GitHub Action that leverages Anthropic's Claude AI to provide intelligent analysis and review of pull requests.","directories":{},"lint-staged":{"**/*":"prettier --write --ignore-unknown"},"_nodeVersion":"20.18.1","dependencies":{"uuid":"^11.0.3","dotenv":"^16.4.7","commander":"^13.0.0","minimatch":"^10.0.1","@actions/core":"^1.11.1","@actions/github":"^6.0.0","@anthropic-ai/sdk":"^0.33.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.1.7","esbuild":"^0.24.2","prettier":"3.4.2","lint-staged":"^15.3.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-pull-review-cli_1.0.2_1736093856124_0.062254305688899336","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@diekotto/ai-pull-review-cli","version":"1.0.3","keywords":["AI","PR","GHA","cli","code-review","github-action"],"author":{"name":"Diego Maroto"},"license":"MIT","_id":"@diekotto/ai-pull-review-cli@1.0.3","maintainers":[{"name":"diekotto","email":"diego.diemg@gmail.com"}],"homepage":"https://github.com/diekotto/ai-pull-review#readme","bugs":{"url":"https://github.com/diekotto/ai-pull-review/issues"},"bin":{"ai-pull-review-cli":"bin/cli.js"},"dist":{"shasum":"7269064e13bbbae9b52117200a68f208d02d48d2","tarball":"https://registry.npmjs.org/@diekotto/ai-pull-review-cli/-/ai-pull-review-cli-1.0.3.tgz","fileCount":7,"integrity":"sha512-VDQ8bx6w0NfWpzIA67RXbdVQFgdt0ZxIrj3fh1SAqbttRSlBOlzNkA9eLISquSlIOL7g2BZ3yL1OcEmCj0jC+A==","signatures":[{"sig":"MEYCIQDCq6Lj1sjLfP8FSKQ/7t3MzRhBVSTLlkR7bxn2WfjEAAIhAOi4yD2eaeCudj6gebzhTXCN11wNxDt5V+quG7wrwUL4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3660254},"main":"src/cli.js","gitHead":"b9da979b0a164784ff2d7131b04b0c79a2884e1c","scripts":{"cli":"esbuild src/cli.js --bundle --platform=node --legal-comments=none --outfile=bin/cli.js","gha":"esbuild src/gha.js --bundle --platform=node --legal-comments=none --outfile=dist/gha.js","test":"jest","start":"node src/cli.js","pretty":"prettier --write .","prepare":"husky"},"_npmUser":{"name":"diekotto","email":"diego.diemg@gmail.com"},"repository":{"url":"git+https://github.com/diekotto/ai-pull-review.git","type":"git"},"_npmVersion":"10.8.2","description":"A GitHub Action that leverages Anthropic's Claude AI to provide intelligent analysis and review of pull requests.","directories":{},"lint-staged":{"**/*":"prettier --write --ignore-unknown"},"_nodeVersion":"20.18.1","dependencies":{"uuid":"^11.0.3","dotenv":"^16.4.7","commander":"^13.0.0","minimatch":"^10.0.1","@actions/core":"^1.11.1","@actions/github":"^6.0.0","@anthropic-ai/sdk":"^0.33.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.1.7","esbuild":"^0.24.2","prettier":"3.4.2","lint-staged":"^15.3.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-pull-review-cli_1.0.3_1736094461338_0.7633449998175812","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@diekotto/ai-pull-review-cli","version":"2.0.0","keywords":["AI","PR","GHA","cli","code-review","github-action"],"author":{"name":"Diego Maroto"},"license":"MIT","_id":"@diekotto/ai-pull-review-cli@2.0.0","maintainers":[{"name":"diekotto","email":"diego.diemg@gmail.com"}],"homepage":"https://github.com/diekotto/ai-pull-review#readme","bugs":{"url":"https://github.com/diekotto/ai-pull-review/issues"},"bin":{"ai-pull-review-cli":"bin/cli.js"},"dist":{"shasum":"9eeabf36b600263bbc88826040480737d00db5a8","tarball":"https://registry.npmjs.org/@diekotto/ai-pull-review-cli/-/ai-pull-review-cli-2.0.0.tgz","fileCount":7,"integrity":"sha512-ZDWdSwpABzYuYIWeSocV/ZgTeOR1r5Ep/qDbjRZf7gxcWkmZrLbZdxg4J6kgI5fTMJMXekKt+0RhdF4zshYLgg==","signatures":[{"sig":"MEQCIEeXWQ6JzufXwOYzk2W6p8Q4BceXv9hgSysMS9EGhLzDAiAaT1yzGzSdGUyZueJyJlA9rsy/LgyDNh20PduTFTUHkA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3660472},"main":"src/cli.js","engines":{"npm":">=10.0.0","node":">=22.0.0"},"gitHead":"bd15c8bfff59a64dd9a3ca0aab6d59da66a88409","scripts":{"cli":"esbuild src/cli.js --bundle --platform=node --target=node22 --legal-comments=none --outfile=bin/cli.js","gha":"esbuild src/gha.js --bundle --platform=node --target=node22 --legal-comments=none --outfile=dist/gha.js","test":"jest","start":"node src/cli.js","pretty":"prettier --write .","prepare":"husky"},"_npmUser":{"name":"diekotto","email":"diego.diemg@gmail.com"},"repository":{"url":"git+https://github.com/diekotto/ai-pull-review.git","type":"git"},"_npmVersion":"10.8.2","description":"A GitHub Action that leverages Anthropic's Claude AI to provide intelligent analysis and review of pull requests.","directories":{},"lint-staged":{"**/*":"prettier --write --ignore-unknown"},"_nodeVersion":"20.18.1","dependencies":{"uuid":"^11.0.3","dotenv":"^16.4.7","commander":"^13.0.0","minimatch":"^10.0.1","@actions/core":"^1.11.1","@actions/github":"^6.0.0","@anthropic-ai/sdk":"^0.33.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.1.7","esbuild":"^0.24.2","prettier":"3.4.2","lint-staged":"^15.3.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-pull-review-cli_2.0.0_1736095778966_0.6644439795289776","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@diekotto/ai-pull-review-cli","version":"2.0.1","keywords":["AI","PR","GHA","cli","code-review","github-action"],"author":{"name":"Diego Maroto"},"license":"MIT","_id":"@diekotto/ai-pull-review-cli@2.0.1","maintainers":[{"name":"diekotto","email":"diego.diemg@gmail.com"}],"homepage":"https://github.com/diekotto/ai-pull-review#readme","bugs":{"url":"https://github.com/diekotto/ai-pull-review/issues"},"bin":{"ai-pull-review-cli":"bin/cli.js"},"dist":{"shasum":"47d05428003fd406a1fab4b8896894c20b3c2ace","tarball":"https://registry.npmjs.org/@diekotto/ai-pull-review-cli/-/ai-pull-review-cli-2.0.1.tgz","fileCount":7,"integrity":"sha512-fK7K6+ECuJOveaN7EBbmwTW8jO1N/1VL8rXkA8u8LD82udUh5coKUTWDcEU/apsnBq5rvR1cDt2MToPFSvPTfg==","signatures":[{"sig":"MEUCICr7GtBAGISXSAA/7QLcb3Er3Zr+qvuWyzEgHxkXh8f5AiEA0rPPNQT0P07dJBTCzMbIKvbWjx/ioTQAgYHBaurjPfk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3663544},"main":"src/cli.js","engines":{"npm":">=10.0.0","node":">=22.0.0"},"gitHead":"cad87fb97fdd35e91a3cd1f3fec1119ee50f975b","scripts":{"cli":"esbuild src/cli.js --bundle --platform=node --target=node22 --legal-comments=none --outfile=bin/cli.js","gha":"esbuild src/gha.js --bundle --platform=node --target=node22 --legal-comments=none --outfile=dist/gha.js","test":"jest","start":"node src/cli.js","pretty":"prettier --write .","prepare":"husky"},"_npmUser":{"name":"diekotto","email":"diego.diemg@gmail.com"},"repository":{"url":"git+https://github.com/diekotto/ai-pull-review.git","type":"git"},"_npmVersion":"10.8.2","description":"A GitHub Action that leverages Anthropic's Claude AI to provide intelligent analysis and review of pull requests.","directories":{},"lint-staged":{"**/*":"prettier --write --ignore-unknown"},"_nodeVersion":"20.18.1","dependencies":{"uuid":"^11.0.3","dotenv":"^16.4.7","commander":"^13.0.0","minimatch":"^10.0.1","@actions/core":"^1.11.1","@actions/github":"^6.0.0","@anthropic-ai/sdk":"^0.33.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.1.7","esbuild":"^0.24.2","prettier":"3.4.2","lint-staged":"^15.3.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-pull-review-cli_2.0.1_1736096876756_0.7149804933890858","host":"s3://npm-registry-packages-npm-production"}},"2.3.0":{"name":"@diekotto/ai-pull-review-cli","version":"2.3.0","description":"A GitHub Action that leverages Anthropic's Claude AI to provide intelligent analysis and review of pull requests.","author":{"name":"Diego Maroto"},"license":"MIT","main":"src/cli.js","engines":{"node":">=22.0.0","npm":">=10.0.0"},"scripts":{"test":"jest","prepare":"husky","start":"node src/cli.js","pretty":"prettier --write .","build":"npm run gha && npm run cli","gha":"esbuild src/gha.js --bundle --platform=node --target=node22 --legal-comments=none --outfile=dist/gha.js","cli":"esbuild src/cli.js --bundle --platform=node --target=node22 --legal-comments=none --outfile=bin/cli.js"},"repository":{"type":"git","url":"git+https://github.com/diekotto/ai-pull-review.git"},"bugs":{"url":"https://github.com/diekotto/ai-pull-review/issues"},"homepage":"https://github.com/diekotto/ai-pull-review#readme","devDependencies":{"esbuild":"^0.24.2","husky":"^9.1.7","jest":"^29.7.0","lint-staged":"^15.3.0","prettier":"3.4.2"},"lint-staged":{"**/*":"prettier --write --ignore-unknown"},"bin":{"ai-pull-review-cli":"bin/cli.js"},"keywords":["AI","PR","GHA","cli","code-review","github-action"],"dependencies":{"@actions/core":"^1.11.1","@actions/github":"^6.0.0","@anthropic-ai/sdk":"^0.33.1","commander":"^13.0.0","dotenv":"^16.4.7","minimatch":"^10.0.1","uuid":"^11.0.3"},"_id":"@diekotto/ai-pull-review-cli@2.3.0","gitHead":"bef6b2f4699782521a53b48892adb05e7c592ebe","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-Ks3NQ3dytXJ0nXc/2WweQISMAiZHPn/cA1npdpjNKVGZYMFNTKENK21c5VStTdyh2rF5AWSacgTpNCTesV+nMw==","shasum":"94a8889049fff64ddc2e3c3b086b840c40f88066","tarball":"https://registry.npmjs.org/@diekotto/ai-pull-review-cli/-/ai-pull-review-cli-2.3.0.tgz","fileCount":6,"unpackedSize":1866075,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD98f3jy4JV6C/zs4C/NxFd/6jp3T9v96GxQx3wwizD1QIhAK9cYldi6FA/MwBLhMC8gdL0+N4wDx/TyYL+axCzo25y"}]},"_npmUser":{"name":"diekotto","email":"diego.diemg@gmail.com"},"directories":{},"maintainers":[{"name":"diekotto","email":"diego.diemg@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ai-pull-review-cli_2.3.0_1742919063774_0.5718345175224655"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-05T15:50:32.482Z","modified":"2025-03-25T16:11:04.326Z","1.0.1":"2025-01-05T15:50:32.838Z","1.0.2":"2025-01-05T16:17:36.401Z","1.0.3":"2025-01-05T16:27:41.840Z","2.0.0":"2025-01-05T16:49:39.270Z","2.0.1":"2025-01-05T17:07:57.104Z","2.3.0":"2025-03-25T16:11:04.154Z"},"bugs":{"url":"https://github.com/diekotto/ai-pull-review/issues"},"author":{"name":"Diego Maroto"},"license":"MIT","homepage":"https://github.com/diekotto/ai-pull-review#readme","keywords":["AI","PR","GHA","cli","code-review","github-action"],"repository":{"type":"git","url":"git+https://github.com/diekotto/ai-pull-review.git"},"description":"A GitHub Action that leverages Anthropic's Claude AI to provide intelligent analysis and review of pull requests.","maintainers":[{"name":"diekotto","email":"diego.diemg@gmail.com"}],"readme":"# AI Pull Request Analysis\n\nA powerful tool for automated code review powered by Anthropic's Claude AI. Available both as a GitHub Action and as an NPM package for CLI usage.\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![NPM Version](https://img.shields.io/npm/v/@diekotto/ai-pull-review-cli.svg)](https://www.npmjs.com/package/@diekotto/ai-pull-review-cli)\n[![Node Version](https://img.shields.io/node/v/@diekotto/ai-pull-review-cli.svg)](https://www.npmjs.com/package/@diekotto/ai-pull-review-cli)\n\n## Features\n\n- Automated code review using Claude AI\n- Detection of potential bugs and vulnerabilities\n- Style and consistency checking\n- Documentation assessment\n- Performance impact analysis\n- Security best practices verification\n- Cost estimation and tracking\n- Flexible file filtering\n- Supports multiple analysis levels\n- Available as both GitHub Action and CLI tool\n\n## Usage Options\n\n### 1. GitHub Action\n\n#### Prerequisites\n\n1. Anthropic API key (obtain from [Anthropic's website](https://anthropic.com))\n2. GitHub repository with pull request workflows enabled\n\n#### Installation\n\n1. Create `.github/workflows/pr-analysis.yml`:\n\n```yaml\nname: PR Analysis\non:\n  pull_request:\n    types: [opened, synchronize, reopened]\n\njobs:\n  analyze:\n    runs-on: ubuntu-latest\n    permissions:\n      contents: read\n      pull-requests: write\n\n    steps:\n      - uses: actions/checkout@v4\n      - name: AI Pull Request Analysis\n        uses: diekotto/ai-pull-review@v2\n        with:\n          anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}\n          github_token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n2. Add your Anthropic API key to repository secrets:\n   - Repository settings → Secrets and Variables → Actions\n   - Create new secret: `ANTHROPIC_API_KEY`\n   - Add your API key as the value\n\n### 2. CLI Usage\n\nThe tool is also available as an NPM package for command-line usage.\n\n#### Installation\n\n```bash\n# Global installation\nnpm install -g @diekotto/ai-pull-review-cli\n\n# Or run directly with npx\nnpx @diekotto/ai-pull-review-cli\n```\n\n#### CLI Options\n\n```bash\nUsage: ai-pull-review-cli [options]\n\nOptions:\n  -V, --version                       output the version number\n  -p, --pr <number>                   Pull request number (required)\n  -r, --repo <owner/repo>            Repository (required)\n  -t, --token <token>                GitHub token (default: GITHUB_TOKEN env)\n  -k, --key <key>                    Anthropic API key (default: ANTHROPIC_API_KEY env)\n  -l, --level <level>                Analysis level (basic, standard, deep) (default: \"basic\")\n  -m, --model <model>                Claude model to use (default: \"claude-3-5-haiku-20241022\")\n  --file-patterns <patterns>         File patterns to include (comma-separated)\n  --exclude-patterns <patterns>      File patterns to exclude (default: \"**/node_modules/**, **/dist/**, **/build/**, **/bin/**, **/artifacts/**\")\n  --max-files <number>              Maximum files to analyze (default: \"10\")\n  --max-size <number>               Maximum file size in KB (default: \"100\")\n  --threshold <number>              Comment confidence threshold (default: \"0.6\")\n  --write-pull-request              Write the analysis to the pull request as a comment\n  -o, --output <folder>             Output folder for results (default: \"results\")\n  -h, --help                        display help for command\n```\n\n#### Example Usage\n\n```bash\n# Using environment variables\nexport GITHUB_TOKEN=your_github_token\nexport ANTHROPIC_API_KEY=your_anthropic_key\n\n# Analyze a specific PR\nai-pull-review-cli -p 123 -r owner/repo -l deep\n\n# Or with npx\nnpx ai-pull-review-cli -p 123 -r owner/repo -l deep\n```\n\n## Configuration\n\n### Analysis Levels\n\n- `basic`: Quick analysis focusing on bugs and style issues\n- `standard`: Comprehensive analysis including performance and security\n- `deep`: In-depth analysis including architecture, testing, and broader implications\n\n### Available Models\n\nThe tool supports various Claude models with different capabilities and pricing:\n\n- `claude-3-5-sonnet-20241022` (Default for accuracy)\n- `claude-3-5-haiku-20241022` (Default for speed)\n- `claude-3-opus-20240229` (Most capable)\n\n### GitHub Action Configuration\n\nComplete configuration options for your workflow file:\n\n```yaml\n- uses: diekotto/ai-pull-review@v2\n  with:\n    # Required\n    anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}\n    github_token: ${{ secrets.GITHUB_TOKEN }}\n\n    # Optional\n    file_patterns: '**/*.js,**/*.jsx,**/*.ts,**/*.tsx,**/*.py,**/*.java,**/*.rb,**/*.go,**/*.rs' # Files to analyze\n    exclude_patterns: '**/node_modules/**,**/dist/**,**/bin/**' # Files to exclude\n    max_files: '10' # Maximum files to analyze\n    max_size: '100' # Maximum file size in KB\n    comment_threshold: '0.7' # Minimum confidence for comments\n    analysis_level: 'basic' # basic, standard, or deep\n    model: 'claude-3-5-haiku-20241022' # Claude model to use\n```\n\n### Advanced Example\n\nConfiguration focusing on JavaScript analysis with deep inspection:\n\n```yaml\nname: Deep JS Analysis\non:\n  pull_request:\n    paths:\n      - '**.js'\n      - '**.jsx'\n      - '**.ts'\n      - '**.tsx'\n\njobs:\n  analyze:\n    runs-on: ubuntu-latest\n    permissions:\n      contents: read\n      pull-requests: write\n\n    steps:\n      - uses: actions/checkout@v4\n      - name: AI Pull Request Analysis\n        uses: diekotto/ai-pull-review@v2\n        with:\n          anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}\n          github_token: ${{ secrets.GITHUB_TOKEN }}\n          file_patterns: '**/*.js,**/*.jsx,**/*.ts,**/*.tsx'\n          exclude_patterns: '**/node_modules/**,**/dist/**,**/*.test.js'\n          analysis_level: 'deep'\n          max_files: '15'\n          comment_threshold: '0.6'\n          model: 'claude-3-5-sonnet-20241022'\n```\n\n## Error Handling and Limitations\n\n- Files exceeding size or complexity limits are automatically skipped\n- Warnings are logged for problematic files\n- Analysis continues with remaining files when encountering issues\n- Detailed error reporting in GitHub Actions log\n- Cost tracking and estimation for API usage\n\n## Requirements\n\n- Node.js >= 22.0.0\n- NPM >= 10.0.0\n\n## License\n\nMIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.\n","readmeFilename":"README.md"}