Metadata-Version: 2.4
Name: pushpilot
Version: 1.1.0
Summary: PushPilot - Intelligent multi-framework Git autopilot that watches features, detects AI coding context, and ships to GitHub
Author: PushPilot Developers
Project-URL: Homepage, https://github.com/rhamifydev/PushPilot
Project-URL: Repository, https://github.com/rhamifydev/PushPilot.git
Project-URL: Issues, https://github.com/rhamifydev/PushPilot/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Version Control :: Git
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# 🚀 PushPilot

> **Intelligent Multi-Framework Git & GitHub Autopilot**  
> One command to initialize Git, link your GitHub repository, generate conventional commits, and push. Includes a **Feature-Complete File Watcher** that automatically syncs code to GitHub whenever a feature is completed.

[![GitHub](https://img.shields.io/badge/GitHub-rhamifydev%2FPushPilot-blue?logo=github)](https://github.com/rhamifydev/PushPilot)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)

---

## 🌟 What PushPilot Does

1. **Zero-Config One-Command Setup (`pushpilot <github-url>`)**:
   - Give it your GitHub repo URL once: `pushpilot https://github.com/username/repo.git`.
   - If Git is not initialized, PushPilot initializes it with default branch `main`.
   - Links the `origin` remote automatically.
   - Detects if GitHub was initialized with a default README or `.gitignore` and merges/rebases seamlessly without conflicts.
   - Generates a framework-tailored `.gitignore` if none exists.
   - Stages all files, creates a conventional commit, and pushes directly to GitHub!

2. **Subsequent One-Command Push (`pushpilot` or `auto-push`)**:
   - Devs just write `pushpilot` (or `auto-push`).
   - Detects all modified/added/deleted files.
   - Generates a **Conventional Semantic Commit Message** (e.g., `feat(auth): implement login endpoint in FastAPI`).
   - Stages, commits, and pushes to GitHub in 2 seconds.

3. **Internal AI Commit Intelligence (Auto-Detect)**:
   - **Coding with AI?** If you are coding inside an AI-assisted environment (**Google Antigravity IDE**, **Cursor**, **Aider**, **Claude Code**, **Cline**) or have an AI API configured (**Gemini**, **OpenAI**, **Anthropic**, **Groq**, or local **Ollama**), PushPilot detects the active developer intent and git diff to generate **ultra-accurate, laser-focused Conventional Commit messages**.
   - **Not coding with AI?** PushPilot instantly and seamlessly uses its **smart default heuristic engine** (zero dependencies, zero delay, offline-friendly).
   - Use `--no-ai` to disable AI detection or `--ai` to force it.

4. **Multi-Language & Multi-Framework Intelligence**:
   - **JavaScript / TypeScript**: React, Next.js, Vue, Nuxt, Angular, Svelte, Vite, Node.js, Express, NestJS
   - **Python**: Django, FastAPI, Flask, standard Python, AI/ML
   - **Rust**: Cargo projects
   - **Go**: Go modules
   - **Dart / Flutter**: Mobile & Web Flutter apps
   - **Java / Kotlin**: Spring Boot, Maven, Gradle
   - **C# / .NET**: ASP.NET Core, .NET solutions
   - **PHP**: Laravel, Symfony, Composer
   - **Ruby**: Ruby on Rails, Bundler

---

## 🚀 One-Command Installation for Developers

Any developer can install and use **PushPilot** globally with a single command:

### Option 1: Install Directly from GitHub (Works right now for anyone!)
```bash
# Recommended for CLI tools (pipx or uv)
pipx install git+https://github.com/rhamifydev/PushPilot.git

# Or via standard pip
pip install git+https://github.com/rhamifydev/PushPilot.git
```

### Option 2: Install from PyPI
```bash
pip install pushpilot
# or
pipx install pushpilot
```

### Option 3: Local / Development
Clone the repo and run:
```bash
pip install -e .
```

Once installed, the commands `pushpilot`, `pilot`, and `push` are available anywhere in your terminal!

---

## 🛠️ Usage Examples

### 1. Initialize & Link GitHub in One Step
```bash
pushpilot https://github.com/rhamifydev/PushPilot.git
```
*Initializes Git if needed, sets default branch `main`, links remote `origin`, stages, commits, and pushes to GitHub.*

### 2. Instant Auto-Push (Subsequent uses)
```bash
pushpilot
```

### 3. Continuous Feature-Complete Watcher
```bash
pushpilot --watch
```
*Watches files and pushes to GitHub whenever you finish coding a feature increment!*

Customizing the feature settlement window:
```bash
pushpilot -w --cooldown 10
```

### 4. Custom Commit Message
```bash
pushpilot -m "feat(payment): integrate Stripe checkout webhook"
```

### 5. Inspect Detected Project Stack
```bash
pushpilot --detect
```

### 6. Interactive Setup / Update GitHub Remote
```bash
pushpilot --setup
```

### 7. Dry-Run (Preview what would happen)
```bash
pushpilot --dry-run
```

---

## 📋 CLI Reference

| Command / Option | Description |
| :--- | :--- |
| `pushpilot [URL]` | Run auto-sync (optionally initialize & link GitHub repository URL) |
| `-w`, `--watch` | Continuous watcher mode with feature-completion settlement |
| `--cooldown SEC` | Seconds of inactivity before triggering feature commit (default: 8s) |
| `-m`, `--message MSG` | Override auto-generated message with a custom commit message |
| `-b`, `--branch NAME` | Target git branch (defaults to active branch / `main`) |
| `-r`, `--remote NAME` | Target git remote (default: `origin`) |
| `--detect` | Print detected language, framework, ecosystem, and git status |
| `--setup` | Interactively link or update GitHub repository URL |
| `--init-gitignore` | Create/reset tailored `.gitignore` for the detected stack |
| `--ai` | Explicitly enable AI-powered commit generation (auto-detected by default) |
| `--no-ai` | Disable AI detection and force default rule-based conventional commit |
| `--dry-run` | Simulate actions without staging, committing, or pushing |
| `-v`, `--version` | Display version information |
