Metadata-Version: 2.4
Name: patchwork-ai
Version: 0.1.0
Summary: Autonomous dependency upgrade agent
License-File: LICENSE
Author: coder11125
Author-email: shashvathpuppala.21cmis0265@meruinternationalschool.com
Requires-Python: >=3.11,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: aiosqlite (>=0.19.0,<0.20.0)
Requires-Dist: anthropic (>=0.21.0,<0.22.0)
Requires-Dist: chromadb (>=0.4.24,<0.5.0)
Requires-Dist: gitpython (>=3.1.42,<4.0.0)
Requires-Dist: groq (>=0.4.2,<0.5.0)
Requires-Dist: httpx (>=0.27.0,<0.28.0)
Requires-Dist: instructor (>=1.2.0,<2.0.0)
Requires-Dist: mistralai (>=0.1.8,<0.2.0)
Requires-Dist: pydantic (>=2.6.0,<3.0.0)
Requires-Dist: pydantic-settings (>=2.1.0,<3.0.0)
Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
Requires-Dist: rich (>=13.7.1,<14.0.0)
Requires-Dist: sqlalchemy[asyncio] (>=2.0.27,<3.0.0)
Requires-Dist: structlog (>=24.1.0,<25.0.0)
Requires-Dist: tree-sitter (>=0.21.0,<0.22.0)
Requires-Dist: tree-sitter-python (>=0.21.0,<0.22.0)
Requires-Dist: typer[all] (>=0.9.0,<0.10.0)
Description-Content-Type: text/markdown

# Patchwork — Autonomous Dependency Surgery

Patchwork is an autonomous agent designed to handle the "grunt work" of dependency upgrades. It doesn't just bump versions; it analyzes changelogs, identifies breaking changes, applies codemods, and verifies the upgrade with your test suite.

## 🚀 Pitch
Stop wasting hours on `v1 → v2` migrations. Let Patchwork perform the surgery.

## 🛠 Architecture
```text
      +-----------+       +-------------------+
      |  CLI/Web  | <---> |  Agent Loop       |
      +-----------+       | (Plan-Patch-Test) |
            ^             +---------+---------+
            |                       |
    +-------+-------+       +-------+-------+
    | Episodic Mem  |       | Semantic Mem  |
    | (SQLite/FTS)  |       | (Chroma/Code) |
    +---------------+       +---------------+
            |                       |
    +-------+-------+       +-------+-------+
    | LLM Gateway   | <---> | Tools         |
    | (Anthropic,..) |       | (AST, Git,..) |
    +---------------+       +---------------+
```

## 📦 Installation
```bash
pip install patchwork-cli
# or via poetry
poetry add patchwork
```

## ⚡ Quickstart
1. **Initialize Config**:
   ```bash
   patchwork init
   ```
2. **Scan for Upgrades**:
   ```bash
   patchwork detect
   ```
3. **Perform Surgery**:
   ```bash
   patchwork upgrade pydantic --provider anthropic
   ```

## ⚙️ Configuration
| Provider | Status | Config Key | Env Var |
|---|---|---|---|
| **Anthropic** | Native | `anthropic` | `ANTHROPIC_API_KEY` |
| **Mistral** | Native | `mistral` | `MISTRAL_API_KEY` |
| **Groq** | Native | `groq` | `GROQ_API_KEY` |
| **Ollama** | Native | `ollama` | - |

## 💰 Cost Transparency
Patchwork logs every token. Run `patchwork cost` to see exactly what you're spending on your migrations.

## 📄 License
MIT

