yncli 1.0.1__tar.gz → 1.0.3__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.
Files changed (43) hide show
  1. yncli-1.0.3/PKG-INFO +118 -0
  2. yncli-1.0.3/README.md +103 -0
  3. {yncli-1.0.1 → yncli-1.0.3}/pyproject.toml +1 -1
  4. {yncli-1.0.1 → yncli-1.0.3}/setup.py +1 -1
  5. {yncli-1.0.1 → yncli-1.0.3}/yncli/tui.py +15 -1
  6. yncli-1.0.3/yncli/update_checker.py +83 -0
  7. yncli-1.0.3/yncli/version.py +1 -0
  8. yncli-1.0.3/yncli.egg-info/PKG-INFO +118 -0
  9. {yncli-1.0.1 → yncli-1.0.3}/yncli.egg-info/SOURCES.txt +2 -0
  10. yncli-1.0.1/PKG-INFO +0 -104
  11. yncli-1.0.1/README.md +0 -89
  12. yncli-1.0.1/yncli.egg-info/PKG-INFO +0 -104
  13. {yncli-1.0.1 → yncli-1.0.3}/setup.cfg +0 -0
  14. {yncli-1.0.1 → yncli-1.0.3}/yncli/__init__.py +0 -0
  15. {yncli-1.0.1 → yncli-1.0.3}/yncli/agent.py +0 -0
  16. {yncli-1.0.1 → yncli-1.0.3}/yncli/built_in_skills/architect.md +0 -0
  17. {yncli-1.0.1 → yncli-1.0.3}/yncli/built_in_skills/code_review.md +0 -0
  18. {yncli-1.0.1 → yncli-1.0.3}/yncli/built_in_skills/debug_oracle.md +0 -0
  19. {yncli-1.0.1 → yncli-1.0.3}/yncli/built_in_skills/debugger.md +0 -0
  20. {yncli-1.0.1 → yncli-1.0.3}/yncli/built_in_skills/polyglot.md +0 -0
  21. {yncli-1.0.1 → yncli-1.0.3}/yncli/built_in_skills/refactor_master.md +0 -0
  22. {yncli-1.0.1 → yncli-1.0.3}/yncli/built_in_skills/security_auditor.md +0 -0
  23. {yncli-1.0.1 → yncli-1.0.3}/yncli/built_in_skills/system_architect.md +0 -0
  24. {yncli-1.0.1 → yncli-1.0.3}/yncli/built_in_skills/test_runner.md +0 -0
  25. {yncli-1.0.1 → yncli-1.0.3}/yncli/built_in_skills/ultrabrain.md +0 -0
  26. {yncli-1.0.1 → yncli-1.0.3}/yncli/clean_text.py +0 -0
  27. {yncli-1.0.1 → yncli-1.0.3}/yncli/client.py +0 -0
  28. {yncli-1.0.1 → yncli-1.0.3}/yncli/config.py +0 -0
  29. {yncli-1.0.1 → yncli-1.0.3}/yncli/language_detector.py +0 -0
  30. {yncli-1.0.1 → yncli-1.0.3}/yncli/main.py +0 -0
  31. {yncli-1.0.1 → yncli-1.0.3}/yncli/skills_manager.py +0 -0
  32. {yncli-1.0.1 → yncli-1.0.3}/yncli/system_prompt.py +0 -0
  33. {yncli-1.0.1 → yncli-1.0.3}/yncli/tools/__init__.py +0 -0
  34. {yncli-1.0.1 → yncli-1.0.3}/yncli/tools/file_tools.py +0 -0
  35. {yncli-1.0.1 → yncli-1.0.3}/yncli/tools/polyglot_tools.py +0 -0
  36. {yncli-1.0.1 → yncli-1.0.3}/yncli/tools/search_tools.py +0 -0
  37. {yncli-1.0.1 → yncli-1.0.3}/yncli/tools/system_tools.py +0 -0
  38. {yncli-1.0.1 → yncli-1.0.3}/yncli/workspace_memory.py +0 -0
  39. {yncli-1.0.1 → yncli-1.0.3}/yncli/workspace_scanner.py +0 -0
  40. {yncli-1.0.1 → yncli-1.0.3}/yncli.egg-info/dependency_links.txt +0 -0
  41. {yncli-1.0.1 → yncli-1.0.3}/yncli.egg-info/entry_points.txt +0 -0
  42. {yncli-1.0.1 → yncli-1.0.3}/yncli.egg-info/requires.txt +0 -0
  43. {yncli-1.0.1 → yncli-1.0.3}/yncli.egg-info/top_level.txt +0 -0
yncli-1.0.3/PKG-INFO ADDED
@@ -0,0 +1,118 @@
1
+ Metadata-Version: 2.4
2
+ Name: yncli
3
+ Version: 1.0.3
4
+ Summary: Autonomous Polyglot AI Coding Agent & TUI
5
+ Author: Yanzyuyu
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+ Requires-Dist: rich>=13.7.0
9
+ Requires-Dist: prompt_toolkit>=3.0.40
10
+ Requires-Dist: requests>=2.31.0
11
+ Requires-Dist: pygments>=2.17.0
12
+ Requires-Dist: beautifulsoup4>=4.12.0
13
+ Dynamic: author
14
+ Dynamic: requires-python
15
+
16
+ # yncli
17
+
18
+ > AI coding agent untuk terminal. Langsung paham struktur workspace Anda, merancang rencana di `plan.md`, dan mengeksekusi kode tanpa basa-basi.
19
+
20
+ ---
21
+
22
+ ## ⚡ Cara Pasang & Jalankan
23
+
24
+ ### Lewat NPX / NPM (Node.js)
25
+ ```bash
26
+ # Langsung jalankan tanpa instalasi:
27
+ npx @yanzyuyu/yncli
28
+
29
+ # Atau pasang secara global:
30
+ npm install -g @yanzyuyu/yncli
31
+ yncli
32
+ ```
33
+
34
+ ### Lewat Pip / Pipx (Python)
35
+ ```bash
36
+ # Pasang via pip:
37
+ pip install yncli
38
+ yncli
39
+
40
+ # Atau jalankan via pipx:
41
+ pipx run yncli
42
+ ```
43
+
44
+ ### Script Pasang Otomatis (PowerShell / Shell)
45
+ - **Windows (PowerShell)**:
46
+ ```powershell
47
+ irm https://raw.githubusercontent.com/yanzyuyu/yncli/main/install.ps1 | iex
48
+ ```
49
+ - **macOS / Linux**:
50
+ ```bash
51
+ curl -fsSL https://raw.githubusercontent.com/yanzyuyu/yncli/main/install.sh | bash
52
+ ```
53
+
54
+ ---
55
+
56
+ ## 💡 Kenapa Pakai yncli?
57
+
58
+ 1. **Langsung Paham Isi Folder**
59
+ Begitu dibuka di direktori proyek, `yncli` otomatis membaca file kode ke memori aktif. Anda tidak perlu repot copy-paste isi file manual.
60
+
61
+ 2. **Perencanaan Jelas (`plan.md`)**
62
+ Di **Plan Mode**, AI menganalisis sistem, menggambar rancangan ASCII, dan menulis dokumen PRD ke `plan.md` sebelum menyentuh kode produksi.
63
+
64
+ 3. **Eksekusi Mandiri di Build Mode**
65
+ Di **Build Mode**, AI langsung memodifikasi file, membuat komponen baru, dan memvalidasi sintaks (JS/TS, Python, Rust, Go, PHP, dll.) secara mandiri.
66
+
67
+ 4. **Tampilan Bersih Satu Baris**
68
+ Status eksekusi diperbarui di baris yang sama tanpa membanjiri layar terminal Anda dengan ratusan baris log yang tidak perlu.
69
+
70
+ ---
71
+
72
+ ## 🛠️ Contoh Penggunaan
73
+
74
+ ### 1. Buka Konsol Interaktif
75
+ Cukup buka terminal di folder proyek Anda:
76
+ ```bash
77
+ yncli
78
+ ```
79
+
80
+ ### 2. Kirim Instruksi Cepat Sekali Ketik
81
+ ```bash
82
+ yncli "buatkan REST API FastAPI dengan autentikasi JWT dan SQLite"
83
+ ```
84
+
85
+ ### 3. Opsi Tambahan
86
+ ```bash
87
+ # Ganti model AI:
88
+ yncli -m ag/claude-sonnet-4-6
89
+
90
+ # Mulai langsung di Plan Mode:
91
+ yncli --mode plan
92
+
93
+ # Aktifkan spesialisasi tertentu:
94
+ yncli -s architect
95
+ ```
96
+
97
+ ---
98
+
99
+ ## ⌨️ Perintah di Dalam Konsol (Slash Commands)
100
+
101
+ | Perintah | Deskripsi |
102
+ | :--- | :--- |
103
+ | `/model` | Buka menu pop-up interaktif untuk memilih model AI (bisa diklik) |
104
+ | `/plan` | Masuk ke Plan Mode (Riset arsitektur & susun `plan.md`) |
105
+ | `/build` | Masuk ke Build Mode (Eksekusi pembuatan & modifikasi kode) |
106
+ | `/ask` | Masuk ke Ask Mode (Konsultasi murni tanpa edit file) |
107
+ | `/cd <folder>` | Pindah folder kerja aktif & muat ulang memori file |
108
+ | `/approval` | Atur apakah tool dijalankan otomatis atau konfirmasi manual |
109
+ | `/thinking` | Tampilkan atau sembunyikan proses penalaran AI |
110
+ | `/skill <nama>` | Ganti persona (ultrabrain, architect, debugger, dll) |
111
+ | `/clear` | Bersihkan riwayat chat dan segarkan memori proyek |
112
+ | `/save` | Simpan riwayat percakapan ke file Markdown |
113
+ | `/exit` | Keluar dari yncli |
114
+
115
+ ---
116
+
117
+ ## 📄 Lisensi
118
+ [MIT License](LICENSE) © 2026 Yanzyuyu.
yncli-1.0.3/README.md ADDED
@@ -0,0 +1,103 @@
1
+ # yncli
2
+
3
+ > AI coding agent untuk terminal. Langsung paham struktur workspace Anda, merancang rencana di `plan.md`, dan mengeksekusi kode tanpa basa-basi.
4
+
5
+ ---
6
+
7
+ ## ⚡ Cara Pasang & Jalankan
8
+
9
+ ### Lewat NPX / NPM (Node.js)
10
+ ```bash
11
+ # Langsung jalankan tanpa instalasi:
12
+ npx @yanzyuyu/yncli
13
+
14
+ # Atau pasang secara global:
15
+ npm install -g @yanzyuyu/yncli
16
+ yncli
17
+ ```
18
+
19
+ ### Lewat Pip / Pipx (Python)
20
+ ```bash
21
+ # Pasang via pip:
22
+ pip install yncli
23
+ yncli
24
+
25
+ # Atau jalankan via pipx:
26
+ pipx run yncli
27
+ ```
28
+
29
+ ### Script Pasang Otomatis (PowerShell / Shell)
30
+ - **Windows (PowerShell)**:
31
+ ```powershell
32
+ irm https://raw.githubusercontent.com/yanzyuyu/yncli/main/install.ps1 | iex
33
+ ```
34
+ - **macOS / Linux**:
35
+ ```bash
36
+ curl -fsSL https://raw.githubusercontent.com/yanzyuyu/yncli/main/install.sh | bash
37
+ ```
38
+
39
+ ---
40
+
41
+ ## 💡 Kenapa Pakai yncli?
42
+
43
+ 1. **Langsung Paham Isi Folder**
44
+ Begitu dibuka di direktori proyek, `yncli` otomatis membaca file kode ke memori aktif. Anda tidak perlu repot copy-paste isi file manual.
45
+
46
+ 2. **Perencanaan Jelas (`plan.md`)**
47
+ Di **Plan Mode**, AI menganalisis sistem, menggambar rancangan ASCII, dan menulis dokumen PRD ke `plan.md` sebelum menyentuh kode produksi.
48
+
49
+ 3. **Eksekusi Mandiri di Build Mode**
50
+ Di **Build Mode**, AI langsung memodifikasi file, membuat komponen baru, dan memvalidasi sintaks (JS/TS, Python, Rust, Go, PHP, dll.) secara mandiri.
51
+
52
+ 4. **Tampilan Bersih Satu Baris**
53
+ Status eksekusi diperbarui di baris yang sama tanpa membanjiri layar terminal Anda dengan ratusan baris log yang tidak perlu.
54
+
55
+ ---
56
+
57
+ ## 🛠️ Contoh Penggunaan
58
+
59
+ ### 1. Buka Konsol Interaktif
60
+ Cukup buka terminal di folder proyek Anda:
61
+ ```bash
62
+ yncli
63
+ ```
64
+
65
+ ### 2. Kirim Instruksi Cepat Sekali Ketik
66
+ ```bash
67
+ yncli "buatkan REST API FastAPI dengan autentikasi JWT dan SQLite"
68
+ ```
69
+
70
+ ### 3. Opsi Tambahan
71
+ ```bash
72
+ # Ganti model AI:
73
+ yncli -m ag/claude-sonnet-4-6
74
+
75
+ # Mulai langsung di Plan Mode:
76
+ yncli --mode plan
77
+
78
+ # Aktifkan spesialisasi tertentu:
79
+ yncli -s architect
80
+ ```
81
+
82
+ ---
83
+
84
+ ## ⌨️ Perintah di Dalam Konsol (Slash Commands)
85
+
86
+ | Perintah | Deskripsi |
87
+ | :--- | :--- |
88
+ | `/model` | Buka menu pop-up interaktif untuk memilih model AI (bisa diklik) |
89
+ | `/plan` | Masuk ke Plan Mode (Riset arsitektur & susun `plan.md`) |
90
+ | `/build` | Masuk ke Build Mode (Eksekusi pembuatan & modifikasi kode) |
91
+ | `/ask` | Masuk ke Ask Mode (Konsultasi murni tanpa edit file) |
92
+ | `/cd <folder>` | Pindah folder kerja aktif & muat ulang memori file |
93
+ | `/approval` | Atur apakah tool dijalankan otomatis atau konfirmasi manual |
94
+ | `/thinking` | Tampilkan atau sembunyikan proses penalaran AI |
95
+ | `/skill <nama>` | Ganti persona (ultrabrain, architect, debugger, dll) |
96
+ | `/clear` | Bersihkan riwayat chat dan segarkan memori proyek |
97
+ | `/save` | Simpan riwayat percakapan ke file Markdown |
98
+ | `/exit` | Keluar dari yncli |
99
+
100
+ ---
101
+
102
+ ## 📄 Lisensi
103
+ [MIT License](LICENSE) © 2026 Yanzyuyu.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "yncli"
7
- version = "1.0.1"
7
+ version = "1.0.3"
8
8
  description = "Autonomous Polyglot AI Coding Agent & TUI"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -6,7 +6,7 @@ long_description = (this_directory / "README.md").read_text(encoding="utf-8") if
6
6
 
7
7
  setup(
8
8
  name="yncli",
9
- version="1.0.1",
9
+ version="1.0.3",
10
10
  description="Autonomous Polyglot AI Coding Agent & TUI",
11
11
  long_description=long_description,
12
12
  long_description_content_type="text/markdown",
@@ -16,6 +16,8 @@ from rich.columns import Columns
16
16
  from yncli.agent import Agent
17
17
  from yncli.config import save_config, CONFIG_DIR
18
18
  from yncli.clean_text import clean_text_for_terminal
19
+ from yncli.version import __version__
20
+ from yncli.update_checker import get_cached_update, trigger_background_update_check
19
21
 
20
22
 
21
23
  class TerminalUI:
@@ -67,12 +69,24 @@ class TerminalUI:
67
69
  return self.session
68
70
 
69
71
  def print_banner(self) -> None:
72
+ trigger_background_update_check()
70
73
  cwd = Path(self.agent.workspace_dir).resolve()
71
74
  folder_name = cwd.name or str(cwd)
72
75
  cwd_str = str(cwd).replace(str(Path.home()), "~")
73
76
  mode_title = self.agent.mode.capitalize()
74
77
  mode_color = "#38bdf8" if self.agent.mode == "plan" else ("#10b981" if self.agent.mode == "build" else "#f59e0b")
75
78
 
79
+ # Check for available update
80
+ update_info = get_cached_update()
81
+ if update_info:
82
+ update_panel = Panel(
83
+ f"[bold yellow]🔔 Update Tersedia:[/] [dim]v{update_info['current']}[/] → [bold green]v{update_info['latest']}[/]\n"
84
+ f"[dim]Perbarui sekarang:[reset] [cyan]pip install -U yncli[/cyan] [dim]atau[/dim] [cyan]npm i -g @yanzyuyu/yncli[/cyan]",
85
+ border_style="yellow",
86
+ padding=(0, 2)
87
+ )
88
+ self.console.print(update_panel)
89
+
76
90
  # Top pill badge
77
91
  self.console.print()
78
92
  pill = Text()
@@ -93,7 +107,7 @@ class TerminalUI:
93
107
 
94
108
  # Info metadata
95
109
  info = Text()
96
- info.append("yncli 1.0.0\n", style="bold #60a5fa")
110
+ info.append(f"yncli {__version__}\n", style="bold #60a5fa")
97
111
  info.append("Autonomous Polyglot AI Coding Agent\n", style="dim white")
98
112
  info.append(f"{self.agent.model} ", style="white")
99
113
  info.append(f"({mode_title} Mode)\n", style=mode_color)
@@ -0,0 +1,83 @@
1
+ import json
2
+ import time
3
+ import threading
4
+ from pathlib import Path
5
+ from typing import Optional, Dict, Any
6
+
7
+ from yncli.version import __version__
8
+ from yncli.config import CONFIG_DIR
9
+
10
+ CACHE_FILE = CONFIG_DIR / "update_cache.json"
11
+ CHECK_INTERVAL_SECONDS = 12 * 3600 # 12 hours
12
+
13
+
14
+ def parse_version_tuple(v: str):
15
+ """Parse version string into tuple of ints for accurate semver comparison."""
16
+ try:
17
+ clean = v.strip().lstrip("v").split("-")[0]
18
+ return tuple(int(x) for x in clean.split(".") if x.isdigit())
19
+ except Exception:
20
+ return (0, 0, 0)
21
+
22
+
23
+ def _fetch_latest_version_pypi() -> Optional[str]:
24
+ try:
25
+ import requests
26
+ resp = requests.get("https://pypi.org/pypi/yncli/json", timeout=2.0)
27
+ if resp.status_code == 200:
28
+ data = resp.json()
29
+ return data.get("info", {}).get("version")
30
+ except Exception:
31
+ pass
32
+ return None
33
+
34
+
35
+ def get_cached_update() -> Optional[Dict[str, Any]]:
36
+ """Returns cached update info if available and latest > current."""
37
+ try:
38
+ if CACHE_FILE.exists():
39
+ data = json.loads(CACHE_FILE.read_text(encoding="utf-8"))
40
+ latest_str = data.get("latest_version")
41
+ if latest_str:
42
+ curr_tuple = parse_version_tuple(__version__)
43
+ latest_tuple = parse_version_tuple(latest_str)
44
+ if latest_tuple > curr_tuple:
45
+ return {
46
+ "current": __version__,
47
+ "latest": latest_str
48
+ }
49
+ except Exception:
50
+ pass
51
+ return None
52
+
53
+
54
+ def trigger_background_update_check() -> None:
55
+ """Spawns a detached background thread to check PyPI/NPM without blocking startup."""
56
+ def _worker():
57
+ try:
58
+ CONFIG_DIR.mkdir(parents=True, exist_ok=True)
59
+ last_checked = 0
60
+ if CACHE_FILE.exists():
61
+ try:
62
+ data = json.loads(CACHE_FILE.read_text(encoding="utf-8"))
63
+ last_checked = data.get("last_checked", 0)
64
+ except Exception:
65
+ pass
66
+
67
+ # Only check network if 12h passed
68
+ now = time.time()
69
+ if (now - last_checked) < CHECK_INTERVAL_SECONDS:
70
+ return
71
+
72
+ latest = _fetch_latest_version_pypi()
73
+ if latest:
74
+ cache_data = {
75
+ "last_checked": now,
76
+ "latest_version": latest
77
+ }
78
+ CACHE_FILE.write_text(json.dumps(cache_data, indent=2), encoding="utf-8")
79
+ except Exception:
80
+ pass
81
+
82
+ t = threading.Thread(target=_worker, daemon=True)
83
+ t.start()
@@ -0,0 +1 @@
1
+ __version__ = "1.0.3"
@@ -0,0 +1,118 @@
1
+ Metadata-Version: 2.4
2
+ Name: yncli
3
+ Version: 1.0.3
4
+ Summary: Autonomous Polyglot AI Coding Agent & TUI
5
+ Author: Yanzyuyu
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+ Requires-Dist: rich>=13.7.0
9
+ Requires-Dist: prompt_toolkit>=3.0.40
10
+ Requires-Dist: requests>=2.31.0
11
+ Requires-Dist: pygments>=2.17.0
12
+ Requires-Dist: beautifulsoup4>=4.12.0
13
+ Dynamic: author
14
+ Dynamic: requires-python
15
+
16
+ # yncli
17
+
18
+ > AI coding agent untuk terminal. Langsung paham struktur workspace Anda, merancang rencana di `plan.md`, dan mengeksekusi kode tanpa basa-basi.
19
+
20
+ ---
21
+
22
+ ## ⚡ Cara Pasang & Jalankan
23
+
24
+ ### Lewat NPX / NPM (Node.js)
25
+ ```bash
26
+ # Langsung jalankan tanpa instalasi:
27
+ npx @yanzyuyu/yncli
28
+
29
+ # Atau pasang secara global:
30
+ npm install -g @yanzyuyu/yncli
31
+ yncli
32
+ ```
33
+
34
+ ### Lewat Pip / Pipx (Python)
35
+ ```bash
36
+ # Pasang via pip:
37
+ pip install yncli
38
+ yncli
39
+
40
+ # Atau jalankan via pipx:
41
+ pipx run yncli
42
+ ```
43
+
44
+ ### Script Pasang Otomatis (PowerShell / Shell)
45
+ - **Windows (PowerShell)**:
46
+ ```powershell
47
+ irm https://raw.githubusercontent.com/yanzyuyu/yncli/main/install.ps1 | iex
48
+ ```
49
+ - **macOS / Linux**:
50
+ ```bash
51
+ curl -fsSL https://raw.githubusercontent.com/yanzyuyu/yncli/main/install.sh | bash
52
+ ```
53
+
54
+ ---
55
+
56
+ ## 💡 Kenapa Pakai yncli?
57
+
58
+ 1. **Langsung Paham Isi Folder**
59
+ Begitu dibuka di direktori proyek, `yncli` otomatis membaca file kode ke memori aktif. Anda tidak perlu repot copy-paste isi file manual.
60
+
61
+ 2. **Perencanaan Jelas (`plan.md`)**
62
+ Di **Plan Mode**, AI menganalisis sistem, menggambar rancangan ASCII, dan menulis dokumen PRD ke `plan.md` sebelum menyentuh kode produksi.
63
+
64
+ 3. **Eksekusi Mandiri di Build Mode**
65
+ Di **Build Mode**, AI langsung memodifikasi file, membuat komponen baru, dan memvalidasi sintaks (JS/TS, Python, Rust, Go, PHP, dll.) secara mandiri.
66
+
67
+ 4. **Tampilan Bersih Satu Baris**
68
+ Status eksekusi diperbarui di baris yang sama tanpa membanjiri layar terminal Anda dengan ratusan baris log yang tidak perlu.
69
+
70
+ ---
71
+
72
+ ## 🛠️ Contoh Penggunaan
73
+
74
+ ### 1. Buka Konsol Interaktif
75
+ Cukup buka terminal di folder proyek Anda:
76
+ ```bash
77
+ yncli
78
+ ```
79
+
80
+ ### 2. Kirim Instruksi Cepat Sekali Ketik
81
+ ```bash
82
+ yncli "buatkan REST API FastAPI dengan autentikasi JWT dan SQLite"
83
+ ```
84
+
85
+ ### 3. Opsi Tambahan
86
+ ```bash
87
+ # Ganti model AI:
88
+ yncli -m ag/claude-sonnet-4-6
89
+
90
+ # Mulai langsung di Plan Mode:
91
+ yncli --mode plan
92
+
93
+ # Aktifkan spesialisasi tertentu:
94
+ yncli -s architect
95
+ ```
96
+
97
+ ---
98
+
99
+ ## ⌨️ Perintah di Dalam Konsol (Slash Commands)
100
+
101
+ | Perintah | Deskripsi |
102
+ | :--- | :--- |
103
+ | `/model` | Buka menu pop-up interaktif untuk memilih model AI (bisa diklik) |
104
+ | `/plan` | Masuk ke Plan Mode (Riset arsitektur & susun `plan.md`) |
105
+ | `/build` | Masuk ke Build Mode (Eksekusi pembuatan & modifikasi kode) |
106
+ | `/ask` | Masuk ke Ask Mode (Konsultasi murni tanpa edit file) |
107
+ | `/cd <folder>` | Pindah folder kerja aktif & muat ulang memori file |
108
+ | `/approval` | Atur apakah tool dijalankan otomatis atau konfirmasi manual |
109
+ | `/thinking` | Tampilkan atau sembunyikan proses penalaran AI |
110
+ | `/skill <nama>` | Ganti persona (ultrabrain, architect, debugger, dll) |
111
+ | `/clear` | Bersihkan riwayat chat dan segarkan memori proyek |
112
+ | `/save` | Simpan riwayat percakapan ke file Markdown |
113
+ | `/exit` | Keluar dari yncli |
114
+
115
+ ---
116
+
117
+ ## 📄 Lisensi
118
+ [MIT License](LICENSE) © 2026 Yanzyuyu.
@@ -11,6 +11,8 @@ yncli/main.py
11
11
  yncli/skills_manager.py
12
12
  yncli/system_prompt.py
13
13
  yncli/tui.py
14
+ yncli/update_checker.py
15
+ yncli/version.py
14
16
  yncli/workspace_memory.py
15
17
  yncli/workspace_scanner.py
16
18
  yncli.egg-info/PKG-INFO
yncli-1.0.1/PKG-INFO DELETED
@@ -1,104 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: yncli
3
- Version: 1.0.1
4
- Summary: Autonomous Polyglot AI Coding Agent & TUI
5
- Author: Yanzyuyu
6
- Requires-Python: >=3.8
7
- Description-Content-Type: text/markdown
8
- Requires-Dist: rich>=13.7.0
9
- Requires-Dist: prompt_toolkit>=3.0.40
10
- Requires-Dist: requests>=2.31.0
11
- Requires-Dist: pygments>=2.17.0
12
- Requires-Dist: beautifulsoup4>=4.12.0
13
- Dynamic: author
14
- Dynamic: requires-python
15
-
16
- # ⚡ YNCLI: World-Class Autonomous Polyglot AI Coding Agent & TUI
17
-
18
- YNCLI adalah AI Coding Agent berbasis CLI/TUI mandiri yang mendukung:
19
- - **Polyglot Coding Engine**: Menguasai Python, TypeScript/JavaScript, Rust, Go, C/C++, Java/Kotlin, C#/.NET, PHP, Ruby, Dart/Flutter, Swift, SQL, Shell, dan Web stack.
20
- - **Deep Workspace Intelligence**: Otomatis memindai dan memuat file proyek ke dalam memori aktif AI dari awal.
21
- - **Ultrabrain Plan Mode**: Otomatis menyusun PRD lengkap dengan ASCII Mockup ke dalam `plan.md`.
22
- - **Autonomous ReAct Loop**: AI dapat membaca file, menulis file, melakukan surgical patch, memvalidasi sintaks via compiler/linter, dan menjalankan perintah di terminal.
23
- - **Antigravity CLI Aesthetic**: Tampilan TUI modern dengan status in-place satu baris dan pop-up model interaktif yang dapat diklik mouse.
24
-
25
- ---
26
-
27
- ## 🚀 Cara Install & Penggunaan Publik
28
-
29
- ### 1. Lewat NPM (Node.js / npx)
30
- ```bash
31
- # Langsung jalankan tanpa install:
32
- npx @yanzyuyu/yncli
33
-
34
- # Atau install secara global:
35
- npm install -g @yanzyuyu/yncli
36
- yncli
37
- ```
38
-
39
- ---
40
-
41
- ### 2. Lewat PyPI (Python / pip)
42
- ```bash
43
- # Install via pip:
44
- pip install yncli
45
- yncli
46
-
47
- # Atau jalankan langsung via pipx:
48
- pipx run yncli
49
- ```
50
-
51
- ---
52
-
53
- ### 3. One-Line Installer Otomatis
54
-
55
- **Windows (PowerShell)**:
56
- ```powershell
57
- irm https://raw.githubusercontent.com/yanzyuyu/yncli/main/install.ps1 | iex
58
- ```
59
-
60
- **macOS / Linux**:
61
- ```bash
62
- curl -fsSL https://raw.githubusercontent.com/yanzyuyu/yncli/main/install.sh | bash
63
- ```
64
-
65
- ---
66
-
67
- ## 💻 Panduan Perintah
68
-
69
- ### 1. Masuk ke Mode Interaktif TUI:
70
- ```powershell
71
- yncli
72
- ```
73
-
74
- ### 2. Mode Direct Execution (Quick Query):
75
- ```powershell
76
- yncli "buatkan script rest api fastapi lengkap dengan jwt auth"
77
- ```
78
-
79
- ### 3. Opsi Tambahan:
80
- ```powershell
81
- # Ganti model awal
82
- yncli -m ag/claude-sonnet-4-6
83
-
84
- # Buka dalam Plan Mode
85
- yncli --mode plan
86
-
87
- # Aktifkan skill tertentu
88
- yncli -s architect
89
-
90
- # Lihat daftar model yang tersedia
91
- yncli --list-models
92
- ```
93
-
94
- ### Slash Commands di dalam TUI:
95
- - `/model`: Buka pop-up interaktif untuk memilih model AI (bisa diklik mouse)
96
- - `/plan`: Masuk ke Plan Mode (Riset arsitektur & susun PRD `plan.md`)
97
- - `/build`: Masuk ke Build Mode (Eksekusi autonomous pembuatan & editing kode)
98
- - `/ask`: Masuk ke Ask Mode (Konsultasi murni tanpa modifikasi file)
99
- - `/cd <folder>`: Pindah direktori kerja aktif
100
- - `/approval on|off`: Atur konfirmasi tool (otomatis vs tanya dulu)
101
- - `/thinking on|off`: Tampilkan atau sembunyikan live reasoning
102
- - `/skill <nama>`: Aktifkan skill (ultrabrain, architect, debugger, dll)
103
- - `/clear`: Bersihkan riwayat percakapan & refresh memori proyek
104
- - `/exit`: Keluar
yncli-1.0.1/README.md DELETED
@@ -1,89 +0,0 @@
1
- # ⚡ YNCLI: World-Class Autonomous Polyglot AI Coding Agent & TUI
2
-
3
- YNCLI adalah AI Coding Agent berbasis CLI/TUI mandiri yang mendukung:
4
- - **Polyglot Coding Engine**: Menguasai Python, TypeScript/JavaScript, Rust, Go, C/C++, Java/Kotlin, C#/.NET, PHP, Ruby, Dart/Flutter, Swift, SQL, Shell, dan Web stack.
5
- - **Deep Workspace Intelligence**: Otomatis memindai dan memuat file proyek ke dalam memori aktif AI dari awal.
6
- - **Ultrabrain Plan Mode**: Otomatis menyusun PRD lengkap dengan ASCII Mockup ke dalam `plan.md`.
7
- - **Autonomous ReAct Loop**: AI dapat membaca file, menulis file, melakukan surgical patch, memvalidasi sintaks via compiler/linter, dan menjalankan perintah di terminal.
8
- - **Antigravity CLI Aesthetic**: Tampilan TUI modern dengan status in-place satu baris dan pop-up model interaktif yang dapat diklik mouse.
9
-
10
- ---
11
-
12
- ## 🚀 Cara Install & Penggunaan Publik
13
-
14
- ### 1. Lewat NPM (Node.js / npx)
15
- ```bash
16
- # Langsung jalankan tanpa install:
17
- npx @yanzyuyu/yncli
18
-
19
- # Atau install secara global:
20
- npm install -g @yanzyuyu/yncli
21
- yncli
22
- ```
23
-
24
- ---
25
-
26
- ### 2. Lewat PyPI (Python / pip)
27
- ```bash
28
- # Install via pip:
29
- pip install yncli
30
- yncli
31
-
32
- # Atau jalankan langsung via pipx:
33
- pipx run yncli
34
- ```
35
-
36
- ---
37
-
38
- ### 3. One-Line Installer Otomatis
39
-
40
- **Windows (PowerShell)**:
41
- ```powershell
42
- irm https://raw.githubusercontent.com/yanzyuyu/yncli/main/install.ps1 | iex
43
- ```
44
-
45
- **macOS / Linux**:
46
- ```bash
47
- curl -fsSL https://raw.githubusercontent.com/yanzyuyu/yncli/main/install.sh | bash
48
- ```
49
-
50
- ---
51
-
52
- ## 💻 Panduan Perintah
53
-
54
- ### 1. Masuk ke Mode Interaktif TUI:
55
- ```powershell
56
- yncli
57
- ```
58
-
59
- ### 2. Mode Direct Execution (Quick Query):
60
- ```powershell
61
- yncli "buatkan script rest api fastapi lengkap dengan jwt auth"
62
- ```
63
-
64
- ### 3. Opsi Tambahan:
65
- ```powershell
66
- # Ganti model awal
67
- yncli -m ag/claude-sonnet-4-6
68
-
69
- # Buka dalam Plan Mode
70
- yncli --mode plan
71
-
72
- # Aktifkan skill tertentu
73
- yncli -s architect
74
-
75
- # Lihat daftar model yang tersedia
76
- yncli --list-models
77
- ```
78
-
79
- ### Slash Commands di dalam TUI:
80
- - `/model`: Buka pop-up interaktif untuk memilih model AI (bisa diklik mouse)
81
- - `/plan`: Masuk ke Plan Mode (Riset arsitektur & susun PRD `plan.md`)
82
- - `/build`: Masuk ke Build Mode (Eksekusi autonomous pembuatan & editing kode)
83
- - `/ask`: Masuk ke Ask Mode (Konsultasi murni tanpa modifikasi file)
84
- - `/cd <folder>`: Pindah direktori kerja aktif
85
- - `/approval on|off`: Atur konfirmasi tool (otomatis vs tanya dulu)
86
- - `/thinking on|off`: Tampilkan atau sembunyikan live reasoning
87
- - `/skill <nama>`: Aktifkan skill (ultrabrain, architect, debugger, dll)
88
- - `/clear`: Bersihkan riwayat percakapan & refresh memori proyek
89
- - `/exit`: Keluar
@@ -1,104 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: yncli
3
- Version: 1.0.1
4
- Summary: Autonomous Polyglot AI Coding Agent & TUI
5
- Author: Yanzyuyu
6
- Requires-Python: >=3.8
7
- Description-Content-Type: text/markdown
8
- Requires-Dist: rich>=13.7.0
9
- Requires-Dist: prompt_toolkit>=3.0.40
10
- Requires-Dist: requests>=2.31.0
11
- Requires-Dist: pygments>=2.17.0
12
- Requires-Dist: beautifulsoup4>=4.12.0
13
- Dynamic: author
14
- Dynamic: requires-python
15
-
16
- # ⚡ YNCLI: World-Class Autonomous Polyglot AI Coding Agent & TUI
17
-
18
- YNCLI adalah AI Coding Agent berbasis CLI/TUI mandiri yang mendukung:
19
- - **Polyglot Coding Engine**: Menguasai Python, TypeScript/JavaScript, Rust, Go, C/C++, Java/Kotlin, C#/.NET, PHP, Ruby, Dart/Flutter, Swift, SQL, Shell, dan Web stack.
20
- - **Deep Workspace Intelligence**: Otomatis memindai dan memuat file proyek ke dalam memori aktif AI dari awal.
21
- - **Ultrabrain Plan Mode**: Otomatis menyusun PRD lengkap dengan ASCII Mockup ke dalam `plan.md`.
22
- - **Autonomous ReAct Loop**: AI dapat membaca file, menulis file, melakukan surgical patch, memvalidasi sintaks via compiler/linter, dan menjalankan perintah di terminal.
23
- - **Antigravity CLI Aesthetic**: Tampilan TUI modern dengan status in-place satu baris dan pop-up model interaktif yang dapat diklik mouse.
24
-
25
- ---
26
-
27
- ## 🚀 Cara Install & Penggunaan Publik
28
-
29
- ### 1. Lewat NPM (Node.js / npx)
30
- ```bash
31
- # Langsung jalankan tanpa install:
32
- npx @yanzyuyu/yncli
33
-
34
- # Atau install secara global:
35
- npm install -g @yanzyuyu/yncli
36
- yncli
37
- ```
38
-
39
- ---
40
-
41
- ### 2. Lewat PyPI (Python / pip)
42
- ```bash
43
- # Install via pip:
44
- pip install yncli
45
- yncli
46
-
47
- # Atau jalankan langsung via pipx:
48
- pipx run yncli
49
- ```
50
-
51
- ---
52
-
53
- ### 3. One-Line Installer Otomatis
54
-
55
- **Windows (PowerShell)**:
56
- ```powershell
57
- irm https://raw.githubusercontent.com/yanzyuyu/yncli/main/install.ps1 | iex
58
- ```
59
-
60
- **macOS / Linux**:
61
- ```bash
62
- curl -fsSL https://raw.githubusercontent.com/yanzyuyu/yncli/main/install.sh | bash
63
- ```
64
-
65
- ---
66
-
67
- ## 💻 Panduan Perintah
68
-
69
- ### 1. Masuk ke Mode Interaktif TUI:
70
- ```powershell
71
- yncli
72
- ```
73
-
74
- ### 2. Mode Direct Execution (Quick Query):
75
- ```powershell
76
- yncli "buatkan script rest api fastapi lengkap dengan jwt auth"
77
- ```
78
-
79
- ### 3. Opsi Tambahan:
80
- ```powershell
81
- # Ganti model awal
82
- yncli -m ag/claude-sonnet-4-6
83
-
84
- # Buka dalam Plan Mode
85
- yncli --mode plan
86
-
87
- # Aktifkan skill tertentu
88
- yncli -s architect
89
-
90
- # Lihat daftar model yang tersedia
91
- yncli --list-models
92
- ```
93
-
94
- ### Slash Commands di dalam TUI:
95
- - `/model`: Buka pop-up interaktif untuk memilih model AI (bisa diklik mouse)
96
- - `/plan`: Masuk ke Plan Mode (Riset arsitektur & susun PRD `plan.md`)
97
- - `/build`: Masuk ke Build Mode (Eksekusi autonomous pembuatan & editing kode)
98
- - `/ask`: Masuk ke Ask Mode (Konsultasi murni tanpa modifikasi file)
99
- - `/cd <folder>`: Pindah direktori kerja aktif
100
- - `/approval on|off`: Atur konfirmasi tool (otomatis vs tanya dulu)
101
- - `/thinking on|off`: Tampilkan atau sembunyikan live reasoning
102
- - `/skill <nama>`: Aktifkan skill (ultrabrain, architect, debugger, dll)
103
- - `/clear`: Bersihkan riwayat percakapan & refresh memori proyek
104
- - `/exit`: Keluar
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes