Metadata-Version: 2.4
Name: cli-notifier
Version: 0.3.0
Summary: Push notifikasi ke HP via Telegram saat AI agent selesai task
Author: dinarradja
License: MIT
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Utilities
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# CLI Notifier

Push notifikasi ke HP via Telegram saat AI agent selesai task.
**Works like a plugin — `pip install` aja, langsung jalan.**

```
AI Agent → notify → Telegram Bot API → HP (Telegram)
```

## Instalasi

```bash
# Pakai pipx (recommended)
pipx install cli-notifier

# Atau pip biasa
pip install cli-notifier
```

Lalu init global AI tools biar semua agent auto-notify:

```bash
notify --init
```

**Selesai.** Setiap AI agent di project mana pun bakal otomatis kirim notifikasi.

## Setup Telegram (sekali doang)

First run `notify` bakal minta setup. Atau:

```bash
notify --setup
```

Tinggal ikutin petunjuk — bikin bot via @BotFather, masukkin token. **Selesai.**

## Usage

Wrap command:
```bash
notify "sleep 5 && echo selesai"
```

Direct dari AI agent (otomatis dilakukan AI):
```bash
notify --agent "CommandCode" --message "Berhasil setup database"
notify --agent "CommandCode" --message "Gagal deploy" --status failed
```

## Tanpa pip/pipx

Clone repo, terus:
```bash
cd cli-notifier
./notify_cli.py --init     # Setup AI tools
./notify_cli.py --setup    # Setup Telegram
```

Atau `make install` untuk symlink global.

## Cara Kerja

`notify` adalah script Python **zero-dependency** (stdlib aja — urllib, subprocess).
Kirim notifikasi langsung ke Telegram Bot API, tanpa perlu backend/server sendiri.
