ai-ebash 0.1.3__tar.gz → 0.1.5a0__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.
- ai_ebash-0.1.5a0/PKG-INFO +91 -0
- ai_ebash-0.1.5a0/README.md +71 -0
- {ai_ebash-0.1.3 → ai_ebash-0.1.5a0}/setup.cfg +1 -1
- ai_ebash-0.1.5a0/src/ai_ebash.egg-info/PKG-INFO +91 -0
- {ai_ebash-0.1.3 → ai_ebash-0.1.5a0}/src/aiebash/__main__.py +2 -2
- ai_ebash-0.1.3/PKG-INFO +0 -55
- ai_ebash-0.1.3/README.md +0 -35
- ai_ebash-0.1.3/src/ai_ebash.egg-info/PKG-INFO +0 -55
- {ai_ebash-0.1.3 → ai_ebash-0.1.5a0}/MANIFEST.in +0 -0
- {ai_ebash-0.1.3 → ai_ebash-0.1.5a0}/pyproject.toml +0 -0
- {ai_ebash-0.1.3 → ai_ebash-0.1.5a0}/src/ai_ebash.egg-info/SOURCES.txt +0 -0
- {ai_ebash-0.1.3 → ai_ebash-0.1.5a0}/src/ai_ebash.egg-info/dependency_links.txt +0 -0
- {ai_ebash-0.1.3 → ai_ebash-0.1.5a0}/src/ai_ebash.egg-info/entry_points.txt +0 -0
- {ai_ebash-0.1.3 → ai_ebash-0.1.5a0}/src/ai_ebash.egg-info/requires.txt +0 -0
- {ai_ebash-0.1.3 → ai_ebash-0.1.5a0}/src/ai_ebash.egg-info/top_level.txt +0 -0
- {ai_ebash-0.1.3 → ai_ebash-0.1.5a0}/src/aiebash/__init__.py +0 -0
- {ai_ebash-0.1.3 → ai_ebash-0.1.5a0}/src/aiebash/api_client.py +0 -0
- {ai_ebash-0.1.3 → ai_ebash-0.1.5a0}/src/aiebash/block_runner.py +0 -0
- {ai_ebash-0.1.3 → ai_ebash-0.1.5a0}/src/aiebash/formatter_text.py +0 -0
- {ai_ebash-0.1.3 → ai_ebash-0.1.5a0}/src/aiebash/settings.py +0 -0
@@ -0,0 +1,91 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: ai-ebash
|
3
|
+
Version: 0.1.5a0
|
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
|
+
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# Ai-ebash!
|
2
|
+
|
3
|
+
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.
|
4
|
+
|
5
|
+
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.
|
6
|
+
|
7
|
+
## Features
|
8
|
+
|
9
|
+
- Send chat-style prompts to an LLM (configurable model and endpoint).
|
10
|
+
- Parse Markdown responses and highlight/number fenced `bash` code blocks.
|
11
|
+
- Interactive selection and (optional) execution of code blocks.
|
12
|
+
- Rich console output via `rich`.
|
13
|
+
- Configurable via `config.toml`.
|
14
|
+
|
15
|
+
## Requirements
|
16
|
+
|
17
|
+
- Python 3.9+
|
18
|
+
|
19
|
+
## Installation Ubuntu/Debian
|
20
|
+
|
21
|
+
1. Install pipx (if not already installed):
|
22
|
+
```bash
|
23
|
+
sudo apt update
|
24
|
+
sudo apt install pipx python3-venv -y
|
25
|
+
pipx ensurepath
|
26
|
+
```
|
27
|
+
|
28
|
+
2. Restart the terminal or update the PATH:
|
29
|
+
```bash
|
30
|
+
source ~/.bashrc
|
31
|
+
```
|
32
|
+
|
33
|
+
3. Install ai-ebash:
|
34
|
+
```bash
|
35
|
+
pipx install ai-ebash
|
36
|
+
```
|
37
|
+
|
38
|
+
### Example
|
39
|
+
```bash
|
40
|
+
ai Hello AI! Write example script.
|
41
|
+
```
|
42
|
+
or
|
43
|
+
```bash
|
44
|
+
ai -run Hello AI! Write example script.
|
45
|
+
```
|
46
|
+
## Removal
|
47
|
+
|
48
|
+
To completely remove the utility:
|
49
|
+
```bash
|
50
|
+
pipx uninstall ai-ebash
|
51
|
+
```
|
52
|
+
|
53
|
+
## Security
|
54
|
+
|
55
|
+
Do NOT execute arbitrary code returned by an LLM without review. Executing assistant-provided code has security and safety risks. Recommended mitigations:
|
56
|
+
|
57
|
+
## Contributing
|
58
|
+
|
59
|
+
1. Localization to any languages
|
60
|
+
2. Fork the repo and create a feature branch.
|
61
|
+
3. Add tests for new behavior.
|
62
|
+
4. Open a PR with a clear description.
|
63
|
+
|
64
|
+
## License
|
65
|
+
|
66
|
+
MIT
|
67
|
+
|
68
|
+
## Contact
|
69
|
+
|
70
|
+
andrey.bch.1976@gmail.com. Issues and PRs are welcome. Include logs and reproduction steps
|
71
|
+
|
@@ -0,0 +1,91 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: ai-ebash
|
3
|
+
Version: 0.1.5a0
|
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
|
+
|
@@ -72,10 +72,10 @@ 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
|
-
print("=== /RAW RESPONSE
|
78
|
+
print("=== /RAW RESPONSE === \n")
|
79
79
|
|
80
80
|
# Размечаем bash-блоки и получаем список кодов
|
81
81
|
annotated_answer, code_blocks = annotate_bash_blocks(answer)
|
ai_ebash-0.1.3/PKG-INFO
DELETED
@@ -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
|
-
```
|
ai_ebash-0.1.3/README.md
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
# Ai-ebash!
|
2
|
-
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.
|
3
|
-
|
4
|
-
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.
|
5
|
-
|
6
|
-
## Setup
|
7
|
-
|
8
|
-
### Ubuntu/Debian
|
9
|
-
Download `.deb` из [Releases](https://github.com/yourname/ai-bash/releases) and install:
|
10
|
-
|
11
|
-
```bash
|
12
|
-
sudo dpkg -i ai-bash_0.1.0-1_all.deb
|
13
|
-
sudo apt -f install # it will tighten up the missing dependencies
|
14
|
-
```
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
### Run
|
19
|
-
```bash
|
20
|
-
ai [-run] Your request to the AI
|
21
|
-
```
|
22
|
-
|
23
|
-
### Example
|
24
|
-
```bash
|
25
|
-
ai Write a script in bash that outputs a list of files in the current directory.
|
26
|
-
```
|
27
|
-
or
|
28
|
-
```bash
|
29
|
-
ai -run Write a script in bash that outputs a list of files in the current directory.
|
30
|
-
```
|
31
|
-
|
32
|
-
## Remove
|
33
|
-
```bash
|
34
|
-
sudo apt remove ai-bash
|
35
|
-
```
|
@@ -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
|
-
```
|
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
|