Metadata-Version: 2.4
Name: beneissue
Version: 0.1.0
Summary: AI-powered GitHub issue automation framework
Author: Benedict Lee
Author-email: Benedict Lee <leebd@hancom.com>
License-Expression: Apache-2.0
Requires-Dist: langgraph>=0.2.0
Requires-Dist: langsmith>=0.1.0
Requires-Dist: langchain-anthropic>=0.2.0
Requires-Dist: pygithub>=2.0.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: typer>=0.9.0
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# beneissue

AI-powered GitHub issue automation framework using LangGraph and Claude.

## Features

- **Triage**: Classify issues as valid, invalid, duplicate, or needs-info
- **Analyze**: Deep analysis with affected files, fix approach, and scoring
- **Auto-labeling**: Automatically apply labels based on analysis
- **LangSmith Integration**: Full observability with tracing

## Installation

```bash
pip install beneissue
```

## CLI Usage

```bash
# Triage only (no GitHub actions)
beneissue triage owner/repo --issue 123

# Full analysis with labels and comments
beneissue analyze owner/repo --issue 123

# Dry run (no GitHub actions)
beneissue analyze owner/repo --issue 123 --dry-run
```

## GitHub Action

```yaml
name: beneissue

on:
  issues:
    types: [opened]

jobs:
  analyze:
    runs-on: ubuntu-latest
    steps:
      - uses: opendataloader-project/beneissue@v1
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
          langchain-api-key: ${{ secrets.LANGCHAIN_API_KEY }}
```

## Environment Variables

| Variable | Description |
|----------|-------------|
| `ANTHROPIC_API_KEY` | Claude API key |
| `BENEISSUE_TOKEN` | GitHub token |
| `LANGCHAIN_API_KEY` | LangSmith API key (optional) |

## License

Apache 2.0
