ai-ebash 0.1.3__py3-none-any.whl → 0.1.4__py3-none-any.whl

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.
@@ -0,0 +1,91 @@
1
+ Metadata-Version: 2.4
2
+ Name: ai-ebash
3
+ Version: 0.1.4
4
+ Summary: Console utility for integrating artificial intelligence into a Linux terminal.
5
+ Author: Andrey Bochkarev
6
+ Author-email: andrey.bch.1976@gmail.com
7
+ License: MIT
8
+ Requires-Python: >=3.9
9
+ Description-Content-Type: text/markdown
10
+ Requires-Dist: certifi==2025.8.3
11
+ Requires-Dist: charset-normalizer==3.4.3
12
+ Requires-Dist: idna==3.10
13
+ Requires-Dist: markdown-it-py==3.0.0
14
+ Requires-Dist: mdurl==0.1.2
15
+ Requires-Dist: platformdirs==4.4.0
16
+ Requires-Dist: Pygments==2.19.2
17
+ Requires-Dist: requests==2.32.5
18
+ Requires-Dist: rich==14.1.0
19
+ Requires-Dist: urllib3==2.5.0
20
+
21
+ # Ai-ebash!
22
+
23
+ Console utility for integrating artificial intelligence into a Linux terminal. Allows you to ask an AI question and execute the scripts and commands suggested by the AI in the terminal. It will be useful for novice Linux administrators.
24
+
25
+ The project is in the pre-alpha stage. In case of problems with the installation or operation of the Ai-bash utility, please contact me.
26
+
27
+ ## Features
28
+
29
+ - Send chat-style prompts to an LLM (configurable model and endpoint).
30
+ - Parse Markdown responses and highlight/number fenced `bash` code blocks.
31
+ - Interactive selection and (optional) execution of code blocks.
32
+ - Rich console output via `rich`.
33
+ - Configurable via `config.toml`.
34
+
35
+ ## Requirements
36
+
37
+ - Python 3.9+
38
+
39
+ ## Installation Ubuntu/Debian
40
+
41
+ 1. Install pipx (if not already installed):
42
+ ```bash
43
+ sudo apt update
44
+ sudo apt install pipx python3-venv -y
45
+ pipx ensurepath
46
+ ```
47
+
48
+ 2. Restart the terminal or update the PATH:
49
+ ```bash
50
+ source ~/.bashrc
51
+ ```
52
+
53
+ 3. Install ai-ebash:
54
+ ```bash
55
+ pipx install ai-ebash
56
+ ```
57
+
58
+ ### Example
59
+ ```bash
60
+ ai Hello AI! Write example script.
61
+ ```
62
+ or
63
+ ```bash
64
+ ai -run Hello AI! Write example script.
65
+ ```
66
+ ## Removal
67
+
68
+ To completely remove the utility:
69
+ ```bash
70
+ pipx uninstall ai-ebash
71
+ ```
72
+
73
+ ## Security
74
+
75
+ Do NOT execute arbitrary code returned by an LLM without review. Executing assistant-provided code has security and safety risks. Recommended mitigations:
76
+
77
+ ## Contributing
78
+
79
+ 1. Localization to any languages
80
+ 2. Fork the repo and create a feature branch.
81
+ 3. Add tests for new behavior.
82
+ 4. Open a PR with a clear description.
83
+
84
+ ## License
85
+
86
+ MIT
87
+
88
+ ## Contact
89
+
90
+ andrey.bch.1976@gmail.com. Issues and PRs are welcome. Include logs and reproduction steps
91
+
@@ -1,11 +1,11 @@
1
1
  aiebash/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- aiebash/__main__.py,sha256=DHAyTjr2VmSnXP9VGLzUOVVJGTgErBUtDjWkizC2rWU,3720
2
+ aiebash/__main__.py,sha256=B7s3xKsKkYRmcyp54s_w5zEWoBJPtCxrKaxHXv32CBE,3724
3
3
  aiebash/api_client.py,sha256=-hcgY3CP0lsV9Jct_-HQ6WpDosDChwalJjy4aFQ4CIM,2004
4
4
  aiebash/block_runner.py,sha256=JNcdBklJmrlO7ZX7xXiO0fUGqrcNJiRqdwM-yr3OP3k,1599
5
5
  aiebash/formatter_text.py,sha256=NRz_pCpakZ9k8477_4Gx1scDXrEbbOaOi-U7WRp6ZWo,847
6
6
  aiebash/settings.py,sha256=Ml9_ixXl-DVpFYfCygMAhGSH-1luTxN22YYz1mHlsfw,2671
7
- ai_ebash-0.1.3.dist-info/METADATA,sha256=uJvF_8cESTaK9nKp-WK3GEk-OphecwSRDpH3tA5o02I,1596
8
- ai_ebash-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- ai_ebash-0.1.3.dist-info/entry_points.txt,sha256=bstvFHHX76KHqYpjM8FPoRVvNbQprST74CI30Mr5TIM,45
10
- ai_ebash-0.1.3.dist-info/top_level.txt,sha256=JJ-bWdhWlFCfCQGLhmqzN4_bNO0pfVPRsdbx8o9A9AA,8
11
- ai_ebash-0.1.3.dist-info/RECORD,,
7
+ ai_ebash-0.1.4.dist-info/METADATA,sha256=e11dIvYPo1tnX9xOWewd_ai-UFoKwHBrgnQinZojka0,2384
8
+ ai_ebash-0.1.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ ai_ebash-0.1.4.dist-info/entry_points.txt,sha256=bstvFHHX76KHqYpjM8FPoRVvNbQprST74CI30Mr5TIM,45
10
+ ai_ebash-0.1.4.dist-info/top_level.txt,sha256=JJ-bWdhWlFCfCQGLhmqzN4_bNO0pfVPRsdbx8o9A9AA,8
11
+ ai_ebash-0.1.4.dist-info/RECORD,,
aiebash/__main__.py CHANGED
@@ -72,7 +72,7 @@ def main():
72
72
  progress_thread.join() # Ждём завершения потока
73
73
 
74
74
  # В режиме DEBUG выводим исходную (неформатированную) версию ответа
75
- if DEBUG:
75
+ if not DEBUG:
76
76
  print("=== RAW RESPONSE (from send_prompt) ===")
77
77
  print(answer)
78
78
  print("=== /RAW RESPONSE ===\n")
@@ -1,55 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: ai-ebash
3
- Version: 0.1.3
4
- Summary: Console utility for integrating artificial intelligence into a Linux terminal.
5
- Author: Andrey Bochkarev
6
- Author-email: andrey.bch.1976@gmail.com
7
- License: MIT
8
- Requires-Python: >=3.9
9
- Description-Content-Type: text/markdown
10
- Requires-Dist: certifi==2025.8.3
11
- Requires-Dist: charset-normalizer==3.4.3
12
- Requires-Dist: idna==3.10
13
- Requires-Dist: markdown-it-py==3.0.0
14
- Requires-Dist: mdurl==0.1.2
15
- Requires-Dist: platformdirs==4.4.0
16
- Requires-Dist: Pygments==2.19.2
17
- Requires-Dist: requests==2.32.5
18
- Requires-Dist: rich==14.1.0
19
- Requires-Dist: urllib3==2.5.0
20
-
21
- # Ai-ebash!
22
- Console utility for integrating artificial intelligence into a Linux terminal. Allows you to ask an AI question and execute the scripts and commands suggested by the AI in the terminal. It will be useful for novice Linux administrators.
23
-
24
- The project is in the pre-alpha stage. In case of problems with the installation or operation of the Ai-bash utility, please contact me.
25
-
26
- ## Setup
27
-
28
- ### Ubuntu/Debian
29
- Download `.deb` из [Releases](https://github.com/yourname/ai-bash/releases) and install:
30
-
31
- ```bash
32
- sudo dpkg -i ai-bash_0.1.0-1_all.deb
33
- sudo apt -f install # it will tighten up the missing dependencies
34
- ```
35
-
36
-
37
-
38
- ### Run
39
- ```bash
40
- ai [-run] Your request to the AI
41
- ```
42
-
43
- ### Example
44
- ```bash
45
- ai Write a script in bash that outputs a list of files in the current directory.
46
- ```
47
- or
48
- ```bash
49
- ai -run Write a script in bash that outputs a list of files in the current directory.
50
- ```
51
-
52
- ## Remove
53
- ```bash
54
- sudo apt remove ai-bash
55
- ```