Metadata-Version: 2.4
Name: vexqon
Version: 0.2.1
Summary: Vexqon AI: Python SDK and CLI for scanning code and Android APKs for security issues (kod va APK xavfsizligini tekshirish)
Author: Vexqon
Project-URL: Homepage, https://vexqon.com
Keywords: security,apk,android,sast,code-audit,vexqon
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Quality Assurance
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.27

# Vexqon Python SDK

Kod va APK xavfsizligini tekshirish. Kalitni https://vexqon.com saytidan (API ruxsati tasdiqlangach) oling.

```bash
pip install vexqon
export VEXQON_API_KEY=vq_...      # kalitni kodga yozmang
# yoki: vexqon login (kalit saqlanadi); VEXQON_BASE_URL standart https://vexqon.com
```

## Python
```python
from vexqon import Client, InsufficientCredits

with Client() as vq:
    print(vq.me()["credits"])
    r = vq.scan_code("./my_game", ai=True)      # papka yoki .zip
    for f in r.findings:
        print(f["severity"], f["file"], f["line"], f["message"])
    if r.exceeds("high"):
        raise SystemExit(1)
    apk = vq.scan_apk("app-release.apk")
```

## Terminal (VS Code, Android Studio, CI)
```bash
vexqon login                                  # kalit bir marta, yashirin kiritiladi (fayl: ~/.config/vexqon, rejim 0600)
vexqon wallet                                 # API hamyoni balansi va oxirgi 30 kun sarfi
vexqon ask "bu so'rov xavfsizmi?" --level pro --file app/db.py   # fayl yuborishdan oldin sirlar yashiriladi
vexqon chat --level standard                  # terminalda suhbat (/level, /wallet, /exit)
vexqon scan ./my_game --ai --level pro --fail-on high   # chiqish kodi: 0 toza, 1 topilma bor, 2 xato
vexqon scan app-release.apk
vexqon logout
```
Darajalar: `lite` (tez, arzon), `standard`, `pro`, `max` (eng chuqur). Narx haqiqiy sarfga qarab hamyondan yechiladi;
hamyon bo'sh bo'lsa chaqiruv bajarilmaydi (`ApiBalanceEmpty`, HTTP 402) va to'ldirish havolasi ko'rsatiladi: https://vexqon.com/pricing
GitHub Actions: `pip install ./sdk/python && vexqon scan . --fail-on high` (kalit `secrets.VEXQON_API_KEY` dan, `VEXQON_API_KEY` muhiti).

Xavfsizlik: agent hech qachon fayllaringizni o'zgartirmaydi; AI tuzatish taklifi faqat ko'rsatiladi, qo'llash sizning qaroringiz.
Savol va fayl mazmunidan ma'lum sir shakllari (kalit, token, parol, shaxsiy kalit) yuborishdan oldin yashiriladi; bu
to'liq kafolat emas, shuning uchun parol yoki kalitni savolga yozmang.

## Bilishingiz kerak
- Faqat manba fayllar yuklanadi (rasm/tekstura/ovoz yo'q). `.env` fayllar **yuborilmaydi** (kerak bo'lsa `include_env=True`).
- Har ish kredit yechadi. Yuklash avtomatik qayta yuborilmaydi; tarmoq uzilsa `list_jobs()` ni tekshiring.
- Ish yiqilsa yoki kutish tugasa SDK "toza" demaydi: xato ko'taradi yoki chiqish kodi 2 bo'ladi.
- Natijada AI topilmalari `ai_verdict` belgisi bilan keladi; yolg'on signal bo'lishi mumkin, qaror sizniki.

## `vexqon` and `vexqon fix`

Run `vexqon` alone to open a terminal chat (it asks for your API key the first time).

`vexqon fix ./project --level pro` scans the project, asks the AI for a minimal fix for each finding, shows a **diff** and applies it only after you confirm. Before writing, the original file is copied to `.vexqon-backup/`; `vexqon fix ./project --undo` restores it. `.env` files, symlinks and paths outside the project are never touched. Use `--dry-run` to only see diffs. The AI can be wrong: review every diff and run your tests. Source files are uploaded for the scan and the code around each finding is sent for the fix (known secret shapes are masked first; this is not a full guarantee).
