theaipanel 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- theaipanel-0.1.0/LICENSE +21 -0
- theaipanel-0.1.0/PKG-INFO +133 -0
- theaipanel-0.1.0/README.md +117 -0
- theaipanel-0.1.0/pyproject.toml +31 -0
- theaipanel-0.1.0/setup.cfg +4 -0
- theaipanel-0.1.0/src/theaipanel/__init__.py +2 -0
- theaipanel-0.1.0/src/theaipanel/__main__.py +5 -0
- theaipanel-0.1.0/src/theaipanel/adapters/__init__.py +50 -0
- theaipanel-0.1.0/src/theaipanel/adapters/agy.py +102 -0
- theaipanel-0.1.0/src/theaipanel/adapters/base.py +354 -0
- theaipanel-0.1.0/src/theaipanel/adapters/claude.py +90 -0
- theaipanel-0.1.0/src/theaipanel/adapters/codex.py +91 -0
- theaipanel-0.1.0/src/theaipanel/adapters/fake.py +59 -0
- theaipanel-0.1.0/src/theaipanel/adapters/kimi.py +84 -0
- theaipanel-0.1.0/src/theaipanel/adapters/sahte.py +179 -0
- theaipanel-0.1.0/src/theaipanel/brief.py +172 -0
- theaipanel-0.1.0/src/theaipanel/cli.py +523 -0
- theaipanel-0.1.0/src/theaipanel/conditions.py +159 -0
- theaipanel-0.1.0/src/theaipanel/config.py +183 -0
- theaipanel-0.1.0/src/theaipanel/dil.py +135 -0
- theaipanel-0.1.0/src/theaipanel/doctor.py +145 -0
- theaipanel-0.1.0/src/theaipanel/gitops.py +31 -0
- theaipanel-0.1.0/src/theaipanel/guard.py +78 -0
- theaipanel-0.1.0/src/theaipanel/holdout.py +201 -0
- theaipanel-0.1.0/src/theaipanel/jsonx.py +73 -0
- theaipanel-0.1.0/src/theaipanel/ledger.py +239 -0
- theaipanel-0.1.0/src/theaipanel/length.py +135 -0
- theaipanel-0.1.0/src/theaipanel/loop.py +1086 -0
- theaipanel-0.1.0/src/theaipanel/preflight.py +105 -0
- theaipanel-0.1.0/src/theaipanel/prompts.py +76 -0
- theaipanel-0.1.0/src/theaipanel/quotes.py +51 -0
- theaipanel-0.1.0/src/theaipanel/report.py +352 -0
- theaipanel-0.1.0/src/theaipanel/round.py +504 -0
- theaipanel-0.1.0/src/theaipanel/setup.py +445 -0
- theaipanel-0.1.0/src/theaipanel/shorten.py +156 -0
- theaipanel-0.1.0/src/theaipanel/summary.py +271 -0
- theaipanel-0.1.0/src/theaipanel/surec.py +72 -0
- theaipanel-0.1.0/src/theaipanel/veri/dogrulanmis-surumler.json +23 -0
- theaipanel-0.1.0/src/theaipanel/veri/istemler/editor.md +82 -0
- theaipanel-0.1.0/src/theaipanel/veri/istemler/en/editor.md +82 -0
- theaipanel-0.1.0/src/theaipanel/veri/istemler/en/reviewer.md +61 -0
- theaipanel-0.1.0/src/theaipanel/veri/istemler/en/reviser.md +40 -0
- theaipanel-0.1.0/src/theaipanel/veri/istemler/reviewer.md +59 -0
- theaipanel-0.1.0/src/theaipanel/veri/istemler/reviser.md +40 -0
- theaipanel-0.1.0/src/theaipanel/veri/olcutler/en/general.md +26 -0
- theaipanel-0.1.0/src/theaipanel/veri/olcutler/genel.md +26 -0
- theaipanel-0.1.0/src/theaipanel/veri/onerilen-modeller.yaml +5 -0
- theaipanel-0.1.0/src/theaipanel/veri/ornekler/config-ornek.yaml +50 -0
- theaipanel-0.1.0/src/theaipanel/veri/ornekler/config-sahte.yaml +13 -0
- theaipanel-0.1.0/src/theaipanel/veri/ornekler/en/config-ornek.yaml +50 -0
- theaipanel-0.1.0/src/theaipanel/veri/ornekler/en/config-sahte.yaml +15 -0
- theaipanel-0.1.0/src/theaipanel/veri/ornekler/en/ornek-metin.md +17 -0
- theaipanel-0.1.0/src/theaipanel/veri/ornekler/en/vitrin/brief.md +18 -0
- theaipanel-0.1.0/src/theaipanel/veri/ornekler/en/vitrin/cevap-anahtari.md +16 -0
- theaipanel-0.1.0/src/theaipanel/veri/ornekler/en/vitrin/metin.md +20 -0
- theaipanel-0.1.0/src/theaipanel/veri/ornekler/ornek-metin.md +17 -0
- theaipanel-0.1.0/src/theaipanel/veri/ornekler/vitrin/brief.md +18 -0
- theaipanel-0.1.0/src/theaipanel/veri/ornekler/vitrin/cevap-anahtari.md +16 -0
- theaipanel-0.1.0/src/theaipanel/veri/ornekler/vitrin/metin.md +20 -0
- theaipanel-0.1.0/src/theaipanel/veri/sablonlar/brief.md +23 -0
- theaipanel-0.1.0/src/theaipanel/veri/sablonlar/en/brief.md +23 -0
- theaipanel-0.1.0/src/theaipanel/veri/semalar/editor.json +50 -0
- theaipanel-0.1.0/src/theaipanel/veri/semalar/review.json +29 -0
- theaipanel-0.1.0/src/theaipanel/veri/varsayilanlar.yaml +28 -0
- theaipanel-0.1.0/src/theaipanel.egg-info/PKG-INFO +133 -0
- theaipanel-0.1.0/src/theaipanel.egg-info/SOURCES.txt +89 -0
- theaipanel-0.1.0/src/theaipanel.egg-info/dependency_links.txt +1 -0
- theaipanel-0.1.0/src/theaipanel.egg-info/entry_points.txt +2 -0
- theaipanel-0.1.0/src/theaipanel.egg-info/requires.txt +2 -0
- theaipanel-0.1.0/src/theaipanel.egg-info/top_level.txt +1 -0
- theaipanel-0.1.0/tests/test_calisma.py +111 -0
- theaipanel-0.1.0/tests/test_dil.py +320 -0
- theaipanel-0.1.0/tests/test_doctor.py +419 -0
- theaipanel-0.1.0/tests/test_duzeltmeler.py +247 -0
- theaipanel-0.1.0/tests/test_fake.py +158 -0
- theaipanel-0.1.0/tests/test_holdout.py +150 -0
- theaipanel-0.1.0/tests/test_istemler_en.py +161 -0
- theaipanel-0.1.0/tests/test_iyilestirmeler.py +349 -0
- theaipanel-0.1.0/tests/test_katalog.py +281 -0
- theaipanel-0.1.0/tests/test_kesinti.py +831 -0
- theaipanel-0.1.0/tests/test_kosullar.py +79 -0
- theaipanel-0.1.0/tests/test_loop.py +875 -0
- theaipanel-0.1.0/tests/test_mesajlar_a.py +193 -0
- theaipanel-0.1.0/tests/test_mesajlar_b.py +211 -0
- theaipanel-0.1.0/tests/test_models.py +174 -0
- theaipanel-0.1.0/tests/test_real.py +180 -0
- theaipanel-0.1.0/tests/test_round.py +145 -0
- theaipanel-0.1.0/tests/test_setup.py +629 -0
- theaipanel-0.1.0/tests/test_tasinabilirlik.py +357 -0
- theaipanel-0.1.0/tests/test_vitrin.py +74 -0
- theaipanel-0.1.0/tests/test_yayin.py +174 -0
theaipanel-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 The AI Panel contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: theaipanel
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Kendi CLI aboneliklerinizle çalışan, yalıtılmış hakemli çok modelli inceleme paneli.
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: Operating System :: MacOS
|
|
8
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
9
|
+
Classifier: Environment :: Console
|
|
10
|
+
Requires-Python: >=3.10
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Requires-Dist: PyYAML>=6
|
|
14
|
+
Requires-Dist: jsonschema>=4
|
|
15
|
+
Dynamic: license-file
|
|
16
|
+
|
|
17
|
+
# The AI Panel
|
|
18
|
+
|
|
19
|
+
Kendi CLI aboneliklerinizle çalışan, **çok modelli bir hakem paneli**. Bir metni (not, rehber, rapor, belge)
|
|
20
|
+
birden çok yapay zekâ modeline birbirinden habersiz inceletir, bulguları bir editör modeline birleştirtir,
|
|
21
|
+
onayladığınız düzeltmeleri bir revizör modeline uygulatır ve metin kabul edilene kadar turları sürdürür.
|
|
22
|
+
|
|
23
|
+
*A multi-model reviewer panel that runs on your own CLI subscriptions. [English below.](#english)*
|
|
24
|
+
|
|
25
|
+
> Durum: erken sürüm (0.1). macOS ve Linux; Windows deneysel.
|
|
26
|
+
|
|
27
|
+
## Ne yapar, ne yapmaz
|
|
28
|
+
|
|
29
|
+
- **Model sağlamaz.** Bilgisayarınızda kurulu ve giriş yapılmış CLI'ları (Claude Code, Codex, Antigravity,
|
|
30
|
+
Kimi Code …) çağırır. Hesabınıza giriş yapmaz, kimlik dosyalarınızı okumaz, CLI'ları paketlemez, sunucusu yoktur.
|
|
31
|
+
- **Hakemler yalıtılmıştır.** Her çağrı yalnızca kendi dosyalarının bulunduğu taze bir klasörde, araçları kapalı
|
|
32
|
+
olarak çalışır. Hakemler birbirinin istemini ve raporunu görmez; editör onları yalnızca A/B/C etiketleriyle görür.
|
|
33
|
+
Ayrıntı: [docs/yalitim.md](docs/yalitim.md).
|
|
34
|
+
- **Karar sizindir.** Her turun sonunda bir kapı vardır: editörün planını okur, kabul/ret verirsiniz. Durma kuralı
|
|
35
|
+
sağlanınca son kabulü de siz verirsiniz.
|
|
36
|
+
|
|
37
|
+
Marka adları yalnızca hangi CLI'ın desteklendiğini belirtmek için geçer; bu proje o şirketlerle ilişkili değildir.
|
|
38
|
+
|
|
39
|
+
## Kurulum ve ilk deneme
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
pipx install theaipanel
|
|
43
|
+
theaipanel init --sahte # abonelik gerektirmeyen demo yapılandırması
|
|
44
|
+
theaipanel new yedek --vitrin # hataları bilerek yerleştirilmiş örnek metin + cevap anahtarı
|
|
45
|
+
theaipanel review <tarih>_yedek --rubric genel
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Sahte adaptör yalnızca akışı gösterir (tek bir yapay bulgu üretir). Vitrindeki 7 hatanın kaçının bulunduğunu görmek
|
|
49
|
+
için aynı örneği gerçek CLI'larla çalıştırıp `tur-01/editor.md`'yi `cevap-anahtari.md` ile karşılaştırın.
|
|
50
|
+
|
|
51
|
+
Gerçek CLI'larla: `theaipanel doctor` → `theaipanel setup --force` → `theaipanel preflight`.
|
|
52
|
+
Adım adım: [docs/hizli-baslangic.md](docs/hizli-baslangic.md).
|
|
53
|
+
|
|
54
|
+
## Komutlar
|
|
55
|
+
|
|
56
|
+
| Komut | Ne yapar |
|
|
57
|
+
|---|---|
|
|
58
|
+
| `theaipanel setup [--on-ayar ekonomik\|dengeli\|titiz] [--yes] [--force]` | kurulu CLI'lardan rolleri seçip yapılandırmayı yazar |
|
|
59
|
+
| `theaipanel init [--sahte] [--force]` | örnek yapılandırma yazar |
|
|
60
|
+
| `theaipanel new <ad> [--metin dosya \| --ornek \| --vitrin]` | yeni çalışma klasörü açar (brief şablonuyla) |
|
|
61
|
+
| `theaipanel review <çalışma> --rubric <ölçüt>` | 1. turu çalıştırır, kapıda durur |
|
|
62
|
+
| `theaipanel continue <çalışma>` | kararlarınızı uygular, sonraki turu çalıştırır |
|
|
63
|
+
| `theaipanel brief <çalışma> <yeni-brief> --gerekce "..."` | brief'i yeni sürümle günceller |
|
|
64
|
+
| `theaipanel finish <çalışma>` | son kabulü verir ya da açık kayıtlarla bitirir |
|
|
65
|
+
| `theaipanel status <çalışma>` | özeti basar |
|
|
66
|
+
| `theaipanel holdout <çalışma> --ac/--kapat/--simdi` | son sınav hakemini yönetir |
|
|
67
|
+
| `theaipanel doctor [--json]` | model çağırmadan CLI kurulumunu, sürümleri, giriş durumunu ve rollerin hazırlığını denetler |
|
|
68
|
+
| `theaipanel adaptorler [--json]` | desteklenen CLI'ları, eforları ve veri notlarını listeler |
|
|
69
|
+
| `theaipanel preflight` | her rol için kısa bir deneme çağrısı yapar (kota harcar) |
|
|
70
|
+
| `theaipanel dogrula` | gerçek yalıtım testlerini çalıştırır (kaynak deposundan; kota harcar) |
|
|
71
|
+
|
|
72
|
+
## Yapılandırma
|
|
73
|
+
|
|
74
|
+
- **Paket varsayılanları** kodla gelir (`src/theaipanel/veri/varsayilanlar.yaml`).
|
|
75
|
+
- **Sizin yapılandırmanız** `~/.config/theaipanel/config.yaml` (Windows'ta `%APPDATA%\theaipanel\config.yaml`;
|
|
76
|
+
`THEAIPANEL_HOME` ile değiştirilebilir). Yazdığınız değerler varsayılanların üzerine geçer.
|
|
77
|
+
- CLI yolları yazılmazsa PATH'te aranır. Çalışmalar `works_dir` klasöründe durur (varsayılan `~/theaipanel-calismalar`).
|
|
78
|
+
- Kendi ölçütlerinizi `~/.config/theaipanel/olcutler/<ad>.md` olarak ekleyebilirsiniz.
|
|
79
|
+
|
|
80
|
+
## Dil / Language
|
|
81
|
+
|
|
82
|
+
Arayüz Türkçe ve İngilizce çalışır: `THEAIPANEL_LANG` (`tr` | `en`), yapılandırmada `ui_language` (`tr` | `en` |
|
|
83
|
+
`auto`), sonra sistem dili. Hakem ve editör raporlarının dili `report_language` ile seçilir; `en` seçilirse İngilizce
|
|
84
|
+
istem şablonları kullanılır (İngilizce ölçüt: `general`).
|
|
85
|
+
|
|
86
|
+
## Platformlar
|
|
87
|
+
|
|
88
|
+
macOS ve Linux desteklenir. Windows deneysel: süreç yönetimi ve yollar Windows'a uyarlandı ama gerçek CLI yalıtım
|
|
89
|
+
testleri Windows'ta henüz çalıştırılmadı. Windows'ta `agy` ve `kimi` istemi argümanla alır (sınır 30.000 bayt);
|
|
90
|
+
`.cmd/.bat` ikililerine argümanla istem verilmez (`cmd.exe` istemdeki karakterleri komut sayabilir): `agy` istemi
|
|
91
|
+
`prompt.md` üzerinden verir, `kimi` `.exe` ister.
|
|
92
|
+
|
|
93
|
+
## Belgeler
|
|
94
|
+
|
|
95
|
+
- [Hızlı başlangıç](docs/hizli-baslangic.md) · [Yalıtım modeli](docs/yalitim.md) · [Veri uyarısı](docs/veri-uyarisi.md) ·
|
|
96
|
+
[Yeni bir CLI eklemek](docs/yeni-cli.md)
|
|
97
|
+
- [Katkı](CONTRIBUTING.md) · [Güvenlik](SECURITY.md) · [Sürüm notları](CHANGELOG.md)
|
|
98
|
+
|
|
99
|
+
## Lisans
|
|
100
|
+
|
|
101
|
+
MIT. Ayrıntı: [LICENSE](LICENSE).
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## English
|
|
106
|
+
|
|
107
|
+
**The AI Panel** has several AI models review a text independently, merges their findings through an editor model,
|
|
108
|
+
applies the fixes you approve through a reviser model, and repeats until the text is accepted. It uses the CLIs you
|
|
109
|
+
already have installed and logged in to (Claude Code, Codex, Antigravity, Kimi Code …): it provides no model, never
|
|
110
|
+
touches your credentials, and has no server.
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
pipx install theaipanel
|
|
114
|
+
theaipanel init --fake # demo configuration, no subscription needed
|
|
115
|
+
theaipanel new backup --showcase # a sample text with planted errors + answer key
|
|
116
|
+
theaipanel review <date>_backup --rubric general
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
The fake adapter only shows the flow (it produces one made-up finding); run the same sample with real CLIs and compare
|
|
120
|
+
`tur-01/editor.md` with `cevap-anahtari.md` to see how many of the 7 planted errors the panel finds.
|
|
121
|
+
|
|
122
|
+
With real CLIs: `theaipanel doctor` → `theaipanel setup --force` → `theaipanel preflight`. Set `THEAIPANEL_LANG=en` (or
|
|
123
|
+
`ui_language: en`) for an English interface and `report_language: en` for English prompts and reports.
|
|
124
|
+
English aliases: `verify` (`dogrula`), `adapters` (`adaptorler`), `--text`, `--example`, `--showcase`, `--fake`,
|
|
125
|
+
`--preset economy|balanced|thorough`, `--reason`, `--confirm`, `--on/--off/--now`, `--verify-round`,
|
|
126
|
+
`--partial-reviewers`, `--brief-round`.
|
|
127
|
+
|
|
128
|
+
Docs: [Quickstart](docs/en/quickstart.md) · [Isolation model](docs/en/isolation.md) ·
|
|
129
|
+
[Data warning](docs/en/data-warning.md) · [Adding a CLI](docs/en/adding-a-cli.md) ·
|
|
130
|
+
[Contributing](CONTRIBUTING.md) · [Security](SECURITY.md) · [Changelog](CHANGELOG.md)
|
|
131
|
+
|
|
132
|
+
Brand names are used only to say which CLIs are supported; this project is not affiliated with those companies.
|
|
133
|
+
License: MIT.
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# The AI Panel
|
|
2
|
+
|
|
3
|
+
Kendi CLI aboneliklerinizle çalışan, **çok modelli bir hakem paneli**. Bir metni (not, rehber, rapor, belge)
|
|
4
|
+
birden çok yapay zekâ modeline birbirinden habersiz inceletir, bulguları bir editör modeline birleştirtir,
|
|
5
|
+
onayladığınız düzeltmeleri bir revizör modeline uygulatır ve metin kabul edilene kadar turları sürdürür.
|
|
6
|
+
|
|
7
|
+
*A multi-model reviewer panel that runs on your own CLI subscriptions. [English below.](#english)*
|
|
8
|
+
|
|
9
|
+
> Durum: erken sürüm (0.1). macOS ve Linux; Windows deneysel.
|
|
10
|
+
|
|
11
|
+
## Ne yapar, ne yapmaz
|
|
12
|
+
|
|
13
|
+
- **Model sağlamaz.** Bilgisayarınızda kurulu ve giriş yapılmış CLI'ları (Claude Code, Codex, Antigravity,
|
|
14
|
+
Kimi Code …) çağırır. Hesabınıza giriş yapmaz, kimlik dosyalarınızı okumaz, CLI'ları paketlemez, sunucusu yoktur.
|
|
15
|
+
- **Hakemler yalıtılmıştır.** Her çağrı yalnızca kendi dosyalarının bulunduğu taze bir klasörde, araçları kapalı
|
|
16
|
+
olarak çalışır. Hakemler birbirinin istemini ve raporunu görmez; editör onları yalnızca A/B/C etiketleriyle görür.
|
|
17
|
+
Ayrıntı: [docs/yalitim.md](docs/yalitim.md).
|
|
18
|
+
- **Karar sizindir.** Her turun sonunda bir kapı vardır: editörün planını okur, kabul/ret verirsiniz. Durma kuralı
|
|
19
|
+
sağlanınca son kabulü de siz verirsiniz.
|
|
20
|
+
|
|
21
|
+
Marka adları yalnızca hangi CLI'ın desteklendiğini belirtmek için geçer; bu proje o şirketlerle ilişkili değildir.
|
|
22
|
+
|
|
23
|
+
## Kurulum ve ilk deneme
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pipx install theaipanel
|
|
27
|
+
theaipanel init --sahte # abonelik gerektirmeyen demo yapılandırması
|
|
28
|
+
theaipanel new yedek --vitrin # hataları bilerek yerleştirilmiş örnek metin + cevap anahtarı
|
|
29
|
+
theaipanel review <tarih>_yedek --rubric genel
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Sahte adaptör yalnızca akışı gösterir (tek bir yapay bulgu üretir). Vitrindeki 7 hatanın kaçının bulunduğunu görmek
|
|
33
|
+
için aynı örneği gerçek CLI'larla çalıştırıp `tur-01/editor.md`'yi `cevap-anahtari.md` ile karşılaştırın.
|
|
34
|
+
|
|
35
|
+
Gerçek CLI'larla: `theaipanel doctor` → `theaipanel setup --force` → `theaipanel preflight`.
|
|
36
|
+
Adım adım: [docs/hizli-baslangic.md](docs/hizli-baslangic.md).
|
|
37
|
+
|
|
38
|
+
## Komutlar
|
|
39
|
+
|
|
40
|
+
| Komut | Ne yapar |
|
|
41
|
+
|---|---|
|
|
42
|
+
| `theaipanel setup [--on-ayar ekonomik\|dengeli\|titiz] [--yes] [--force]` | kurulu CLI'lardan rolleri seçip yapılandırmayı yazar |
|
|
43
|
+
| `theaipanel init [--sahte] [--force]` | örnek yapılandırma yazar |
|
|
44
|
+
| `theaipanel new <ad> [--metin dosya \| --ornek \| --vitrin]` | yeni çalışma klasörü açar (brief şablonuyla) |
|
|
45
|
+
| `theaipanel review <çalışma> --rubric <ölçüt>` | 1. turu çalıştırır, kapıda durur |
|
|
46
|
+
| `theaipanel continue <çalışma>` | kararlarınızı uygular, sonraki turu çalıştırır |
|
|
47
|
+
| `theaipanel brief <çalışma> <yeni-brief> --gerekce "..."` | brief'i yeni sürümle günceller |
|
|
48
|
+
| `theaipanel finish <çalışma>` | son kabulü verir ya da açık kayıtlarla bitirir |
|
|
49
|
+
| `theaipanel status <çalışma>` | özeti basar |
|
|
50
|
+
| `theaipanel holdout <çalışma> --ac/--kapat/--simdi` | son sınav hakemini yönetir |
|
|
51
|
+
| `theaipanel doctor [--json]` | model çağırmadan CLI kurulumunu, sürümleri, giriş durumunu ve rollerin hazırlığını denetler |
|
|
52
|
+
| `theaipanel adaptorler [--json]` | desteklenen CLI'ları, eforları ve veri notlarını listeler |
|
|
53
|
+
| `theaipanel preflight` | her rol için kısa bir deneme çağrısı yapar (kota harcar) |
|
|
54
|
+
| `theaipanel dogrula` | gerçek yalıtım testlerini çalıştırır (kaynak deposundan; kota harcar) |
|
|
55
|
+
|
|
56
|
+
## Yapılandırma
|
|
57
|
+
|
|
58
|
+
- **Paket varsayılanları** kodla gelir (`src/theaipanel/veri/varsayilanlar.yaml`).
|
|
59
|
+
- **Sizin yapılandırmanız** `~/.config/theaipanel/config.yaml` (Windows'ta `%APPDATA%\theaipanel\config.yaml`;
|
|
60
|
+
`THEAIPANEL_HOME` ile değiştirilebilir). Yazdığınız değerler varsayılanların üzerine geçer.
|
|
61
|
+
- CLI yolları yazılmazsa PATH'te aranır. Çalışmalar `works_dir` klasöründe durur (varsayılan `~/theaipanel-calismalar`).
|
|
62
|
+
- Kendi ölçütlerinizi `~/.config/theaipanel/olcutler/<ad>.md` olarak ekleyebilirsiniz.
|
|
63
|
+
|
|
64
|
+
## Dil / Language
|
|
65
|
+
|
|
66
|
+
Arayüz Türkçe ve İngilizce çalışır: `THEAIPANEL_LANG` (`tr` | `en`), yapılandırmada `ui_language` (`tr` | `en` |
|
|
67
|
+
`auto`), sonra sistem dili. Hakem ve editör raporlarının dili `report_language` ile seçilir; `en` seçilirse İngilizce
|
|
68
|
+
istem şablonları kullanılır (İngilizce ölçüt: `general`).
|
|
69
|
+
|
|
70
|
+
## Platformlar
|
|
71
|
+
|
|
72
|
+
macOS ve Linux desteklenir. Windows deneysel: süreç yönetimi ve yollar Windows'a uyarlandı ama gerçek CLI yalıtım
|
|
73
|
+
testleri Windows'ta henüz çalıştırılmadı. Windows'ta `agy` ve `kimi` istemi argümanla alır (sınır 30.000 bayt);
|
|
74
|
+
`.cmd/.bat` ikililerine argümanla istem verilmez (`cmd.exe` istemdeki karakterleri komut sayabilir): `agy` istemi
|
|
75
|
+
`prompt.md` üzerinden verir, `kimi` `.exe` ister.
|
|
76
|
+
|
|
77
|
+
## Belgeler
|
|
78
|
+
|
|
79
|
+
- [Hızlı başlangıç](docs/hizli-baslangic.md) · [Yalıtım modeli](docs/yalitim.md) · [Veri uyarısı](docs/veri-uyarisi.md) ·
|
|
80
|
+
[Yeni bir CLI eklemek](docs/yeni-cli.md)
|
|
81
|
+
- [Katkı](CONTRIBUTING.md) · [Güvenlik](SECURITY.md) · [Sürüm notları](CHANGELOG.md)
|
|
82
|
+
|
|
83
|
+
## Lisans
|
|
84
|
+
|
|
85
|
+
MIT. Ayrıntı: [LICENSE](LICENSE).
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## English
|
|
90
|
+
|
|
91
|
+
**The AI Panel** has several AI models review a text independently, merges their findings through an editor model,
|
|
92
|
+
applies the fixes you approve through a reviser model, and repeats until the text is accepted. It uses the CLIs you
|
|
93
|
+
already have installed and logged in to (Claude Code, Codex, Antigravity, Kimi Code …): it provides no model, never
|
|
94
|
+
touches your credentials, and has no server.
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
pipx install theaipanel
|
|
98
|
+
theaipanel init --fake # demo configuration, no subscription needed
|
|
99
|
+
theaipanel new backup --showcase # a sample text with planted errors + answer key
|
|
100
|
+
theaipanel review <date>_backup --rubric general
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
The fake adapter only shows the flow (it produces one made-up finding); run the same sample with real CLIs and compare
|
|
104
|
+
`tur-01/editor.md` with `cevap-anahtari.md` to see how many of the 7 planted errors the panel finds.
|
|
105
|
+
|
|
106
|
+
With real CLIs: `theaipanel doctor` → `theaipanel setup --force` → `theaipanel preflight`. Set `THEAIPANEL_LANG=en` (or
|
|
107
|
+
`ui_language: en`) for an English interface and `report_language: en` for English prompts and reports.
|
|
108
|
+
English aliases: `verify` (`dogrula`), `adapters` (`adaptorler`), `--text`, `--example`, `--showcase`, `--fake`,
|
|
109
|
+
`--preset economy|balanced|thorough`, `--reason`, `--confirm`, `--on/--off/--now`, `--verify-round`,
|
|
110
|
+
`--partial-reviewers`, `--brief-round`.
|
|
111
|
+
|
|
112
|
+
Docs: [Quickstart](docs/en/quickstart.md) · [Isolation model](docs/en/isolation.md) ·
|
|
113
|
+
[Data warning](docs/en/data-warning.md) · [Adding a CLI](docs/en/adding-a-cli.md) ·
|
|
114
|
+
[Contributing](CONTRIBUTING.md) · [Security](SECURITY.md) · [Changelog](CHANGELOG.md)
|
|
115
|
+
|
|
116
|
+
Brand names are used only to say which CLIs are supported; this project is not affiliated with those companies.
|
|
117
|
+
License: MIT.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "theaipanel"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "Kendi CLI aboneliklerinizle çalışan, yalıtılmış hakemli çok modelli inceleme paneli."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
license-files = ["LICENSE"]
|
|
12
|
+
requires-python = ">=3.10"
|
|
13
|
+
dependencies = ["PyYAML>=6", "jsonschema>=4"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Operating System :: MacOS",
|
|
17
|
+
"Operating System :: POSIX :: Linux",
|
|
18
|
+
"Environment :: Console",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
[project.scripts]
|
|
22
|
+
theaipanel = "theaipanel.cli:main"
|
|
23
|
+
|
|
24
|
+
[tool.setuptools.packages.find]
|
|
25
|
+
where = ["src"]
|
|
26
|
+
|
|
27
|
+
[tool.setuptools.package-data]
|
|
28
|
+
theaipanel = ["veri/**/*"]
|
|
29
|
+
|
|
30
|
+
[tool.setuptools.dynamic]
|
|
31
|
+
version = {attr = "theaipanel.__version__"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import importlib
|
|
4
|
+
import pkgutil
|
|
5
|
+
|
|
6
|
+
from .base import Adapter, AdapterInfo, CallResult, call_with_retry
|
|
7
|
+
from .fake import FakeAdapter
|
|
8
|
+
from .sahte import SahteAdapter
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _discover_adapters() -> dict[str, type[Adapter]]:
|
|
12
|
+
found = {}
|
|
13
|
+
for module_info in pkgutil.iter_modules(__path__, f"{__name__}."):
|
|
14
|
+
module = importlib.import_module(module_info.name)
|
|
15
|
+
for cls in vars(module).values():
|
|
16
|
+
if not isinstance(cls, type) or not issubclass(cls, Adapter) or cls.__module__ != module.__name__:
|
|
17
|
+
continue
|
|
18
|
+
info = cls.__dict__.get("info")
|
|
19
|
+
if isinstance(info, AdapterInfo):
|
|
20
|
+
if info.name in found and found[info.name] is not cls:
|
|
21
|
+
raise ValueError(f"adaptor adi birden cok kez tanimli: {info.name}")
|
|
22
|
+
found[info.name] = cls
|
|
23
|
+
return found
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
ADAPTERS = _discover_adapters()
|
|
27
|
+
_OPTION_KEYS = ("reasoning_effort", "effort", "edit", "max_arg_bytes")
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def catalog() -> list[AdapterInfo]:
|
|
31
|
+
"""Giriş sorgusu olan CLI'lar önce, demo en sonda."""
|
|
32
|
+
infos = (cls.info for cls in ADAPTERS.values())
|
|
33
|
+
return sorted(infos, key=lambda info: (info.name == "sahte", info.auth_args is None, info.name))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def make_adapter(entry: dict, cfg: dict) -> Adapter:
|
|
37
|
+
"""entry: config'teki bir reviewers/editor/reviser kaydı (adapter, model, ...)."""
|
|
38
|
+
kind = entry["adapter"]
|
|
39
|
+
if kind not in ADAPTERS:
|
|
40
|
+
raise ValueError(f"bilinmeyen adaptor: {kind}")
|
|
41
|
+
cls = ADAPTERS[kind]
|
|
42
|
+
bin_path = cfg["bins"].get(kind)
|
|
43
|
+
if not bin_path and cls.info.bin_name is not None:
|
|
44
|
+
raise ValueError(f"{kind} bulunamadi: PATH'te yok ve config.yaml → bins.{kind} tanimli degil")
|
|
45
|
+
options = {k: entry[k] for k in _OPTION_KEYS if entry.get(k) is not None}
|
|
46
|
+
return cls(bin_path, model=entry.get("model"), isolation_root=cfg["isolation_root"], **options)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
__all__ = ["Adapter", "AdapterInfo", "CallResult", "call_with_retry", "make_adapter", "FakeAdapter", "SahteAdapter",
|
|
50
|
+
"ADAPTERS", "catalog"]
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"""agy (Antigravity CLI) adaptörü.
|
|
2
|
+
|
|
3
|
+
agy stdin'den istem okumuyor; istem -p argümanıyla verilir. Argüman sınırı
|
|
4
|
+
(macOS ARG_MAX ~1 MB, ortam değişkenleri dahil) aşılacaksa veya Windows'ta ikili
|
|
5
|
+
bir .cmd/.bat betiğiyse istem yalıtılmış klasöre prompt.md olarak yazılır ve
|
|
6
|
+
agy'den onu okuması istenir.
|
|
7
|
+
Headless modda onay gerektiren araçlar (dosya yazma, klasör dışı okuma)
|
|
8
|
+
kendiliğinden reddedilir; --sandbox terminal kısıtlarını açar.
|
|
9
|
+
2026-11-19 (agy 1.5.12): varsayılan modda headless çağrı çalışma klasörüne write_file ile onaysız
|
|
10
|
+
yazıyor. --mode plan bunu kapatıyor (JSON'da denied_actions: write_file). agy "--mode plan has no
|
|
11
|
+
effect while slash command expansion is disabled" uyarısı veriyor, ama ölçülen davranış bunun
|
|
12
|
+
tersi; tests/test_real.py → test_cannot_write bunu her sürümde denetler.
|
|
13
|
+
"""
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
|
|
16
|
+
import json
|
|
17
|
+
import os
|
|
18
|
+
import re
|
|
19
|
+
|
|
20
|
+
from .. import surec
|
|
21
|
+
from .base import Adapter, AdapterInfo, Invocation
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def print_timeout(timeout: float) -> int:
|
|
25
|
+
"""agy'nin kendi zaman aşımı, dış zaman aşımının biraz altında (%2,5, en az 10 sn pay)."""
|
|
26
|
+
return max(int(timeout - max(10, timeout * 0.025)), 10)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
POINTER_PROMPT = ("Calisma klasorundeki prompt.md dosyasini oku ve oradaki talimatlari eksiksiz uygula. "
|
|
30
|
+
"Yanitin yalnizca o dosyanin istedigi cikti olsun.")
|
|
31
|
+
POLICY_BLOCK = "The prompt could not be submitted"
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
_SUFFIX = re.compile(r"-(low|medium|high|xhigh|max)$")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def model_effort(model: str | None) -> str | None:
|
|
38
|
+
"""Model adındaki efor eki (gemini-3.1-pro-high → high)."""
|
|
39
|
+
m = _SUFFIX.search(model or "")
|
|
40
|
+
return m.group(1) if m else None
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class AgyAdapter(Adapter):
|
|
44
|
+
"""Model adında efor eki varsa (-low/-high …) --effort verilmez: agy --help ikisinin ilişkisini
|
|
45
|
+
tanımlamıyor, çelişkili ayar vermemek için efor model adından okunur. Config'teki effort ekle
|
|
46
|
+
çelişirse hata. Eki olmayan modellerde (ör. ileride Argon) --effort gönderilir."""
|
|
47
|
+
info = AdapterInfo(
|
|
48
|
+
name="agy", brand="Antigravity (Gemini)", bin_name="agy", install_url="https://antigravity.google",
|
|
49
|
+
data_note="Metin Google'a gonderilir.",
|
|
50
|
+
data_note_en="Text is sent to Google.",
|
|
51
|
+
efforts=("low", "medium", "high", "xhigh", "max"), effort_key="effort", forbidden_efforts={},
|
|
52
|
+
prompt_channel="arguman+prompt.md", can_edit=False,
|
|
53
|
+
isolation=("--sandbox ile terminal kisitli.", "--mode plan ile dosya yazma kapali.",
|
|
54
|
+
"Onay gerektiren araclar basiz modda reddedilir."),
|
|
55
|
+
auth_args=None, models_args=("models",),
|
|
56
|
+
)
|
|
57
|
+
name = info.name
|
|
58
|
+
|
|
59
|
+
def effective_effort(self):
|
|
60
|
+
wanted, suffix = super().effective_effort(), model_effort(self.model)
|
|
61
|
+
if suffix and wanted and wanted != suffix:
|
|
62
|
+
raise ValueError(f"agy: model adi '{self.model}' eforu {suffix} diyor, config effort={wanted}; "
|
|
63
|
+
f"celiskili ayar verilmez")
|
|
64
|
+
return suffix or wanted
|
|
65
|
+
|
|
66
|
+
def build(self, prompt_text, timeout, call_dir, out_dir, label):
|
|
67
|
+
max_bytes = self.options.get("max_arg_bytes")
|
|
68
|
+
if max_bytes is None:
|
|
69
|
+
max_bytes = surec.default_max_arg_bytes()
|
|
70
|
+
env_bytes = sum(len(k) + len(v) + 2 for k, v in os.environ.items())
|
|
71
|
+
if surec.is_windows_batch(self.bin) or len(prompt_text.encode("utf-8")) + env_bytes > max_bytes:
|
|
72
|
+
(call_dir / "prompt.md").write_text(prompt_text, encoding="utf-8")
|
|
73
|
+
prompt_text = POINTER_PROMPT
|
|
74
|
+
# -p değer alır; istemi hemen arkasına koy (aksi hâlde sonraki bayrağı istem sanıyor).
|
|
75
|
+
argv = [self.bin, "-p", prompt_text, "--output-format", "json", "--sandbox",
|
|
76
|
+
"--disable-slash-commands", "--mode", "plan", "--print-timeout", f"{print_timeout(timeout)}s"]
|
|
77
|
+
if self.model:
|
|
78
|
+
argv += ["--model", self.model]
|
|
79
|
+
if self.effort and not model_effort(self.model):
|
|
80
|
+
argv += ["--effort", self.effort]
|
|
81
|
+
return Invocation(argv, stdin_text=None)
|
|
82
|
+
|
|
83
|
+
def parse(self, stdout, stderr, exit_code, out_dir, label):
|
|
84
|
+
try:
|
|
85
|
+
data = json.loads(stdout)
|
|
86
|
+
except json.JSONDecodeError:
|
|
87
|
+
return stdout, None, None, f"agy JSON ciktisi okunamadi (cikis {exit_code}) {stderr.strip()[-200:]}"
|
|
88
|
+
if not isinstance(data, dict):
|
|
89
|
+
return "", None, None, f"agy beklenmeyen cikti zarfi ({type(data).__name__})"
|
|
90
|
+
text = data.get("response") or ""
|
|
91
|
+
error = None
|
|
92
|
+
if data.get("status") != "SUCCESS":
|
|
93
|
+
# JSON'daki hata ayrıntısı ve stderr'deki zaman aşımı bildirimi kullanıcıya taşınır.
|
|
94
|
+
detail = [str(data.get("error") or "").strip()]
|
|
95
|
+
m = re.search(r"print timeout after \S+", stderr)
|
|
96
|
+
if m:
|
|
97
|
+
detail.append(m.group(0))
|
|
98
|
+
detail = "; ".join(d for d in detail if d)
|
|
99
|
+
error = f"agy durum: {data.get('status')}" + (f" — {detail[:300]}" if detail else "")
|
|
100
|
+
elif text.startswith(POLICY_BLOCK):
|
|
101
|
+
error = "agy icerik politikasi istemi reddetti"
|
|
102
|
+
return text, None, data.get("usage"), error
|