Terminal-Assistant-Interface 1.0.9__tar.gz → 1.0.11__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 (21) hide show
  1. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/LICENSE +1 -1
  2. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/PKG-INFO +1 -1
  3. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/pyproject.toml +1 -1
  4. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/src/Terminal_Assistant_Interface.egg-info/PKG-INFO +1 -1
  5. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/src/termiai/__init__.py +2 -2
  6. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/src/termilib/tools.py +7 -5
  7. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/README.md +0 -0
  8. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/setup.cfg +0 -0
  9. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/src/Terminal_Assistant_Interface.egg-info/SOURCES.txt +0 -0
  10. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/src/Terminal_Assistant_Interface.egg-info/dependency_links.txt +0 -0
  11. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/src/Terminal_Assistant_Interface.egg-info/entry_points.txt +0 -0
  12. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/src/Terminal_Assistant_Interface.egg-info/requires.txt +0 -0
  13. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/src/Terminal_Assistant_Interface.egg-info/top_level.txt +0 -0
  14. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/src/termiai/__main__.py +0 -0
  15. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/src/termiai/clean.py +0 -0
  16. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/src/termiai_main.py +0 -0
  17. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/src/termilib/__init__.py +0 -0
  18. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/src/termilib/__main__.py +0 -0
  19. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/src/termilib/ftapi.py +0 -0
  20. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/src/termilib/icon_data.py +0 -0
  21. {terminal_assistant_interface-1.0.9 → terminal_assistant_interface-1.0.11}/src/termilib/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Erkhemee
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Terminal-Assistant-Interface
3
- Version: 1.0.9
3
+ Version: 1.0.11
4
4
  Summary: Your personal AI assistant to help terminal
5
5
  Author-email: Ericwasepic127 <ericwasepic127@outlook.com>
6
6
  License-Expression: MIT
@@ -3,7 +3,7 @@ requires = ["setuptools >= 77.0.3"]
3
3
  build-backend = "setuptools.build_meta"
4
4
  [project]
5
5
  name = "Terminal-Assistant-Interface"
6
- version = "1.0.9"
6
+ version = "1.0.11"
7
7
  authors = [
8
8
  { name="Ericwasepic127", email="ericwasepic127@outlook.com" },
9
9
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Terminal-Assistant-Interface
3
- Version: 1.0.9
3
+ Version: 1.0.11
4
4
  Summary: Your personal AI assistant to help terminal
5
5
  Author-email: Ericwasepic127 <ericwasepic127@outlook.com>
6
6
  License-Expression: MIT
@@ -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 avia
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
@@ -141,7 +141,7 @@ async def get_current_time(local=True):
141
141
  try:
142
142
  (1 / 0) if local else None
143
143
  r = await client.get("https://currentdatetimepy.onrender.com/", timeout=45)
144
- return {r.text, "user_time_zone": "GMT" + str(datetime.datetime.now().astimezone().tzinfo)}
144
+ return {"utcdate": r.text, "user_time_zone": "GMT" + str(datetime.datetime.now().astimezone().tzinfo)}
145
145
  except:
146
146
  import datetime
147
147
  return {"utcdate": datetime.datetime.now(datetime.timezone.utc).ctime(), "user_time_zone": "GMT" + str(datetime.datetime.now().astimezone().tzinfo)}
@@ -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
- m = {"error": {"message": "DecodeError: " + r.text}}
201
- except:
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
- tools.append_message("assistant", returned.get("error").get("message"), clone)
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"]