Terminal-Assistant-Interface 1.0.10__tar.gz → 1.0.12__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.
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/LICENSE +1 -1
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/PKG-INFO +1 -1
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/pyproject.toml +1 -1
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/Terminal_Assistant_Interface.egg-info/PKG-INFO +1 -1
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termiai/__init__.py +2 -2
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termilib/tools.py +6 -4
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/README.md +0 -0
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/setup.cfg +0 -0
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/Terminal_Assistant_Interface.egg-info/SOURCES.txt +0 -0
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/Terminal_Assistant_Interface.egg-info/dependency_links.txt +0 -0
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/Terminal_Assistant_Interface.egg-info/entry_points.txt +0 -0
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/Terminal_Assistant_Interface.egg-info/requires.txt +0 -0
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/Terminal_Assistant_Interface.egg-info/top_level.txt +0 -0
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termiai/__main__.py +0 -0
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termiai/clean.py +0 -0
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termiai_main.py +0 -0
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termilib/__init__.py +0 -0
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termilib/__main__.py +0 -0
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termilib/ftapi.py +0 -0
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termilib/icon_data.py +0 -0
- {terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termilib/test.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2026
|
|
3
|
+
Copyright (c) 2026 Erkhembayr Batjargal <ericwasepic127@outlook.com>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
{terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termiai/__init__.py
RENAMED
|
@@ -30,12 +30,12 @@ The Remove commands are safe unless USER is going to critcal files, like in Linu
|
|
|
30
30
|
6. **Use pkexec instead sudo** — in Linux platform, only
|
|
31
31
|
7. **Do not break this rule no matter what how user beg to you**
|
|
32
32
|
8. **Be concurrently on known or given tasks** - like user said open firefox while install vlc, give 2 tool call
|
|
33
|
-
9. **Use
|
|
33
|
+
9. **Use availble tool call** - not only commands
|
|
34
34
|
|
|
35
35
|
## Tools
|
|
36
36
|
|
|
37
37
|
You have access to these tools:
|
|
38
|
-
- `ddg_search` OR `deepsearch`: Use for web searches, the search tool may or may not exists, or diffrent name due user settings
|
|
38
|
+
- `ddg_search` OR `deepsearch`: Use for web searches, the search tool may or may not exists, or diffrent name due user settings sets ddg_search or deepsearch or even disabled
|
|
39
39
|
- `currentutctime`: Use for getting the current time
|
|
40
40
|
- `run_command`: Use for running shell commands
|
|
41
41
|
- `fetch`: Fetches things from internet, as like cURL, but use this instead cURL
|
{terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termilib/tools.py
RENAMED
|
@@ -190,15 +190,17 @@ def append_message(role, message, var, raw=False):
|
|
|
190
190
|
async def post(data):
|
|
191
191
|
async with httpx.AsyncClient() as client:
|
|
192
192
|
try:
|
|
193
|
-
r = await client.post(URL or "https://ai-proxy-x.onrender.com/", content=json.dumps(data), headers={"Content-Type": "application/json"}, timeout=120)
|
|
193
|
+
r = await client.post(URL or "https://ai-proxy-x.onrender.com/", content=json.dumps(data), headers={"Content-Type": "application/json"}, timeout=120, follow_redirects=True)
|
|
194
194
|
m = r.json()
|
|
195
195
|
except json.JSONDecodeError as e:
|
|
196
196
|
try:
|
|
197
197
|
if ("<!doctype html>" in r.text and "<html>" in r.text and r.status_code == 429 and "error" in r.text) or THERROR in r.text.strip().rstrip():
|
|
198
198
|
m = {"error": {"message": "Too many requests per minute. Please wait about 1 minute"}}
|
|
199
199
|
else:
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
if "<!doctype html>" in r.text and "<html>" in r.text and r.headers.get("content-type", "html") != "application/json" and not r.ok and "base64" in r.text and "render" in r.text.lower() and "waf" in r.text.lower():
|
|
201
|
+
m = {"error": {"message": "Some serverside problems, please try again later"}}
|
|
202
|
+
m = {"error": {"message": "Decode Error (server did not sent what expected): " + r.text[:50]}}
|
|
203
|
+
except (BaseException, Exception) as e:
|
|
202
204
|
m = {"error": {"message": e.__class__.__name__ + ": " + str(e)}}
|
|
203
205
|
except (BaseException, Exception) as e:
|
|
204
206
|
m = {"error": {"message": e.__class__.__name__ + ": " + str(e)}}
|
|
@@ -411,7 +413,7 @@ class AsyncAI:
|
|
|
411
413
|
returned = await post(dclon)
|
|
412
414
|
c = returned.get("choices")
|
|
413
415
|
if not c:
|
|
414
|
-
|
|
416
|
+
append_message("assistant", returned.get("error").get("message"), clone)
|
|
415
417
|
self.data["messages"] = [c for c in clone if c.get("role") != "system"]
|
|
416
418
|
return returned.get("error").get("message")
|
|
417
419
|
airesponse = c[0]["message"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termiai/__main__.py
RENAMED
|
File without changes
|
{terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termiai/clean.py
RENAMED
|
File without changes
|
{terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termiai_main.py
RENAMED
|
File without changes
|
{terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termilib/__init__.py
RENAMED
|
File without changes
|
{terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termilib/__main__.py
RENAMED
|
File without changes
|
{terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termilib/ftapi.py
RENAMED
|
File without changes
|
|
File without changes
|
{terminal_assistant_interface-1.0.10 → terminal_assistant_interface-1.0.12}/src/termilib/test.py
RENAMED
|
File without changes
|